Search code examples
iosuitoolbarios7uistatusbar

iOS7 merged statusbar and toolbar


How do I create a toolbar that is merged with the status bar at the top in iOS7, like in the Safari app? This can be easily achieved using a UINavigationBar, however, an UIToolbar is needed.

Safari's toolbar in iOS 7


Solution

  • I'm assuming that you've already got a toolbar at the top, but that it's 44pts high instead of 64pts as you'd like. If that's the case, then you need to set the bar's barPosition property to UIBarPositionTopAttached.