1.在info.plist里面添加字段
key----View controller-based status bar appearance
value---NO
在appDelegate里面添加代码:
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
沒有留言:
張貼留言