iOS暴力更改状态栏背景颜色

UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
statusBar.backgroundColor = [UIColor whiteColor];

猜你喜欢

转载自blog.csdn.net/quwenjie/article/details/80333733