I have a problem when dragging a navigation bar or toolbar (storyboard) to my view controller.
UINavigationBar:
You can resolve this issue by using Auto Layout, as per this techincal note (Preventing the Status Bar from Covering Your Views).
Here are some excerpts:
Add the Vertical Space Constraint to the top-most view
- Control drag from the UIToolbar to the "Top Layout Guide"
- In the popover, choose "Vertical Spacing"
- Change the "Vertical Space Constraint" Constant to 0 (zero)
If you have other subviews below the UIToolbar, anchor those views to the toolbar instead of the Top Layout Guide
This will support ios6 and ios7.