Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone 6 Plus auto hides the status bar in landscape mode?

My current application supports only landscape mode. I'm presenting the menu when the user hits the bar button item on the top part right under the status bar. Recently, I checked my application in iPhone 6 Plus simulator, status bar is not shown in my application as it supports only landscape mode. In landscape mode, my menu is hanging on the left side of the device instead of sticking to the top. Is this happening because of the status bar missing ? I want to show the status bar in the application as well as fix the menu hanging on the left side. Help me out!

like image 553
Pradeep Rajkumar Avatar asked Sep 16 '14 18:09

Pradeep Rajkumar


People also ask

How do I hide the status bar on my iPhone?

To completely hide it on the home screen, open up an app, such as Settings, and wait about three to four seconds. Press the home button again, and the status bar will be completely gone.

What is blue bar at top of iPhone screen?

If you see blue, green, red, or purple in the status barYour iPhone is using Screen Mirroring, or an app is actively using your location. Your iPhone is either recording sound or your screen. Your iPhone is using SharePlay to share content.

What is the height of status bar in iOS?

By default Status Bar height in iOS is 20 pt .


1 Answers

I added the following lines in the ViewWillAppear method which fixed the Status bar missing issue.

[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
[self setNeedsStatusBarAppearanceUpdate];
like image 178
Pradeep Rajkumar Avatar answered Sep 29 '22 05:09

Pradeep Rajkumar