- Config Background Color of Statue Bar
+ (void)configStatusBarBackgroundColor:(UIColor *)color {
UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
if ([statusBar respondsToSelector:@selector(setBackgroundColor:)]) {
statusBar.backgroundColor = color;
}
}
- Add PCH
Build Settings -> Prefix Header
$(SRCROOT)/[ProjectName]/[PCH_file_name].pch
网友评论