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.
Asked
Active
Viewed 1,355 times
3 Answers
3
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
.

Simon
- 25,468
- 44
- 152
- 266
-
1Nice, but how do I do this in storyboards or programatically? – Hristo Sep 19 '13 at 18:02
0
This is only for UINavigationController
and its UINavigationBar
.
You should use a navigation controller even if you're not pushing/popping.

Daniel
- 23,129
- 12
- 109
- 154
0
Create a properly sized background image for the Toolbar. Check out Apple's iOS7 UI Transition Guide for all the details.

Jonathan Arbogast
- 9,620
- 4
- 35
- 47