Status Bar in UITableViewController

后端 未结 3 1280
忘了有多久
忘了有多久 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: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];
    

提交回复
热议问题