jueves, 1 de septiembre de 2016

iOS: Change statusbar background color

- (void)_setStatusBarBackgroundColor:(UIColor *)color
{
    UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
    
    if ([statusBar respondsToSelector:@selector(setBackgroundColor:)])
    {
        statusBar.backgroundColor = color;
        
    }

}

No hay comentarios:

Publicar un comentario