Quantcast
Viewing all articles
Browse latest Browse all 4

Answer by Vikash Kumar for status bar hidden on simulator but not iPhone

Write this method on each view controller unless you have that plist entry.

Objective-c

-(BOOL)prefersStatusBarHidden{    return YES;}

Swift 3+

override var prefersStatusBarHidden: Bool {    return true}

And don't forget to set (if you present a view controller by calling the presentViewController:animated:completion: method):

Objective-C

vcToBeShownWithoutStatusbar.modalPresentationCapturesStatusBarAppearance = YES;

Swift

vcToBeShownWithoutStatusbar.modalPresentationCapturesStatusBarAppearance = true

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>