背景色
UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
if ([statusBar respondsToSelector:@selector(setBackgroundColor:)])
{
statusBar.backgroundColor = [UIColor cyanColor];
}
最完美的应该是根据状态栏附近的颜色,自动填充生成背景色,整体画面才和谐
网友评论