IOS 7 UI changes: status bar and navigation controller

I want to update my application for iOS 7. I installed the application from the application store on iOS 7, it looked good, the interface was perfect. But when I installed the application from Xcode 5, it displays the navigation bar and other views under the status bar. I read the iOS 7 transition document, which suggests using an automatic layout. My goal of the app is 5.1 and later. Auto Layout only supports iOS 6 and later.

Please tell me how I can fix this.

+4
source share
2 answers

This is the only thing that really worked for me: Add this to your controller.

- (BOOL)prefersStatusBarHidden { return YES; } 
+7
source

Source: https://habr.com/ru/post/1501647/


All Articles