Search code examples
uiviewcontrollerstoryboardios7viewcontrolleruistatusbar

Slide view controller menu and status bar issue with IOS7


I have a slide view controller setup.

When viewing the app in IOS7 the status bar is shown and translucent so it is shown with the content.

enter image description here

Is there something I should be doing to offset the content below the status bar for this specific View Controller in my storyboard?


Solution

  • Two different methods (depands on what you are trying to do):

    1. Add this value to plist: "View controller-based status bar appearance" and set it to "NO". then you can code whatever you want (setStatusBarHidden etc.)

    2. If you just want to move the view when it's iOS7 (status bar is above), in interface builder -> attribute inspector -> set delta y to -20 (so it would be below status bar).