Reputation: 21
By using "UIViewControllerBasedStatusBarAppearance" made to "NO", we are able to hide the status bar in <= iOS 8.1 (all devices). But Its not working in only iOS 8.2 version in only iPhone 6 & 6+ devices. Can anyone help me out ??
Upvotes: 2
Views: 610
Reputation: 1325
You really should implement prefersStatusBarHidden on your view controller(s):
override func prefersStatusBarHidden() -> Bool {
return true
}
if your using swift you can use this code otherwise above code.
Upvotes: 0
Reputation: 31
In your apps plist file add a row call it "View controller-based status bar appearance" and set it to NO.
OR Try this one also.`
-(BOOL)prefersStatusBarHidden{
return YES;
}
`
Upvotes: 1