UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, mScreenW, 20)];
view.backgroundColor = [UIColor redColor];
static UIWindow *newWindow;
if (newWindow == nil) {
newWindow = [[UIWindow alloc] initWithFrame:view.bounds];
}
newWindow.windowLevel = UIWindowLevelStatusBar + 100;
[newWindow addSubview:view];
[newWindow makeKeyAndVisible];
04-26
3341
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)