5

Environment: AutoLayout within iOS 6/7, Xcode 5.


I understand that to adjust the NavBar to accommodate the status bar, I set NavBar's background Image to 64 bits high (ref: WWDC 2013 Video Lecture #214).

enter image description here

Is there a convenient way to toggle the presence of this status bar while repositioning the NavBar up flush against the container view (and vice/versa)?

Added concern: I need to work with both iOS 6 & 7.
iOS 6 has the solid status bar. Hence, I would have to change the NavBar's background image in iOS 7 to automatically accommondate the status bar... or
...am I correct that I can merely set the status bar to OPAQUE to have similar positioning in both iOS 6/7 environments?

Frederick C. Lee
  • 9,019
  • 17
  • 64
  • 105
  • Just FYI: your question violates the NDA that you agreed to when you signed up for the Apple iOS Developer Program. That's your risk to take, obviously, but it's going to be a little tricky for anyone here to give you an answer that works with iOS7 without violating the NDA themselves. – Maarten Jul 24 '13 at 08:36
  • Truly sorry. Shall behave accordingly. – Frederick C. Lee Jul 24 '13 at 18:02
  • No problem. Hold on to your question until the NDA lifts (when iOS 7 is released) or ask your question in the Apple Developer forums (currently down but hopefully back up soon). – Maarten Jul 25 '13 at 09:24

1 Answers1

0

DoubleEncore has a blog post that may help with the status bar issues (link). Also there is a section of the UITransition Guide that deals specifically with Bars that you should review (link). You should review the UIBarButtonItemClass Reference (link), which has important sample code for the UICatalog showing the different UIKit objects (link). These references should give you complete control of the UIKit objects in your project.

Tommie C.
  • 12,895
  • 5
  • 82
  • 100