第一步:在info.plist中添加一个字段:view controller -base status bar 设置为NO
第二步:在#import "AppDelegate.m"里添加:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
}
时间: 2024-11-25 08:29:40