I have a UIViewController, MyViewController, with a UIToolbar at the top. Using interface builder the doc outline looks like this:
- Bar Button Item1
- Bar Button Item2
- Bar Button Item3
Any view that needs to be anchored to the top and just below the status bar (i.e. UIToolbar, UIButton, etc.) requires additional work for proper placement.
In iOS7, UINavigationBar has a translucent property. By this, the view of the child VC of UINavigationViewController is under UINavigationBar by default.
If you don't need to get an translucent effect, turn off this property using the following code.
self.navigationController.navigationBar.translucent = NO
You can also use @ldindu's way to achieve your need.