Venkatesh Reddy
Venkatesh Reddy

Reputation: 21

How to hide status bar in iOS 8.2 in iPhone 6 device?

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

Answers (2)

vijeesh
vijeesh

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

Jaico Varghese
Jaico Varghese

Reputation: 31

enter image description hereIn 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

Related Questions