Search code examples
iosuinavigationcontrollerautolayout

Added UINavigationcontroller to my app and cannot update frame to resolve the issue


I added a UINavigationcontroller to my app in Xcode 8 and I am unable to resolve the auto-layout issue(namely, update the frames), see image of my issue below:

Screenshot of app

I do not have the option to select the update frames button to resolve the auto-layout issue:

Update frames is greyed out

Any help would be greatly appreciated.

Thanks


Solution

  • I think its not about frame of your view. Please select your viewcontroller(root controller for your navigation controller) go to right pane and find options(middle tab) called 'under opaque bars' and 'under top bars' uncheck them. Now content will be rendered under navigation bar.