Earlier, I was using iOS 6.1 for my project. Recently I have switched to iOS 7. For, a lot of changes I knew, I updated my code.. But I have observed a strange behavior. My
In Swift 2.2, use
self.edgesForExtendedLayout = .None
Swift 3+:
self.edgesForExtendedLayout = []
Look up this key: UIViewControllerBasedStatusBarAppearance
.
It's used in your app's info PLIST file and will come up as:
View controller-based status bar appearance
This will allow you to control the status bar's appearance. There's a bunch of API changes for status bars, go have a look in the documentation for new UIViewController
methods such as
- (void)prefersStatusBarHidden;