在statusBar 后面添加一层视图方法

在statusBar 后面添加一层视图方法:

在AppDelegate.h 里面定义一个 变量 UIWindow *statusBarBack;

在AppDelegate.m里面进行初始化

statusBarBack = [[UIWindow alloc]initWithFrame:[UIApplication sharedApplication].statusBarFrame];

statusBarBack.backgroundColor = [UIColor blackColor];

[statusBarBack setWindowLevel:UIWindowLevelStatusBar - 1];

[statusBarBack makeKeyAndVisible];

posted @ 2013-10-28 11:25  沙影无痕  阅读(120)  评论(0编辑  收藏  举报