Status Bar in UITableViewController

后端 未结 3 1281
忘了有多久
忘了有多久 2021-01-23 04:57

I use an UITableViewController into a Navigation Controller that comes up when an UIButton pressed. When the button has been pressed the <

相关标签:
3条回答
  • 2021-01-23 05:02

    Here's a post that explains well how to set the status bar ViewController based: iOS 7 and later: set status bar style per view controller

    0 讨论(0)
  • 2021-01-23 05:03

    If there is nothing code about related to statusBar in viewDidLoad and ViewWillAppear Then fix it by using [[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO]; write this code in ViewWillAppear method.

    0 讨论(0)
  • 2021-01-23 05:05

    If anyone has the same problem in future, this is the answer.

    Step 1: Add this to your .plist file.

    View controller-based status bar appearance ---> NO

    Step 2: These two lines to your appDelegate into didFinishLaunchingWithOptions method.

    [[UIApplication sharedApplication] setStatusBarHidden:NO];
    
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    
    0 讨论(0)
提交回复
热议问题