In an app I\'m developing (Xcode 5, >=iOS 7 auto-layout), I push a modal view controller. I want the modal view controller to have a navigation bar, so I add one, and add a
Did you try adding the NavigationBar Delegate
@interface MyClass : UIViewController <UINavigationBarDelegate>
And the following method?
- (UIBarPosition)positionForBar:(id <UIBarPositioning>)bar { return UIBarPositionTopAttached; }
And remember to add a constraint of 20 from the top.