Warning frame for "Navigation bar" will be different at run time appears in Xcode 8 Swift 3
Solution 1:
Warning will disappear if you change the property "Simulated Size" to "Freeform".
Solution 2:
As mentioned here you can fix this by toggling Adjust Scrollview Insets on/off.
Solution 3:
I have changed from View as: iPhone 6S to iPhone 5S, then changed back to iPhone 6S, and Xcode did all the changes to remove the warning.
Solution 4:
This worked for me at Xcode 8.3.1 After restarting Xcode, it would still work.
- Select Navigation Controller
- Go to Show the Size Inspector
- Change Simulated Size to Freeform
- Change Simulated Size back to Fixed
- Then the warnings disappear.
Solution 5:
As a workaround just to get rid of the annoying warning I have been editing Main.storyboard manually by removing 'misplaced' in:
<navigationBar key="navigationBar" opaque="NO" contentMode="scaleToFill" misplaced="YES" translucent="NO" id="Os1-Xh-7XN">
A hack but it is nice to have zero warnings rather than 1 :)