1.info.plist文件增加一项
View controller-based status bar appearance 为 NO
2.AppDelegate.m文件
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
//设置状态栏的样式
application.statusBarStyle = UIStatusBarStyleLightContent;
return YES;
}
本文将指导您如何在iOS应用中修改状态栏样式,并通过info.plist文件和AppDelegate.m文件进行配置。
1702

被折叠的 条评论
为什么被折叠?



