ios9 [app setStatusBarHidden:NO] is deprecated

1."View controller-based status bar appearance" 设置为YES, 然后

- (BOOL)prefersStatusBarHidden {
    return YES;
}
2.  "View controller-based status bar appearance" 设置为NO

    UIApplication *app = [UIApplication sharedApplication];
    app.statusBarStyle = UIStatusBarStyleLightContent;

你可能感兴趣的:(Object-c,IOS)