Probably a simple question for experienced Xcode 5 interface builder users, but it is difficult to find the answer on Google:
I have an app for iPhone, which doesn't use a navigation controller (here fullscreen):
The view scene on the very right side has an image view and 5 labels underneath it - to display user details:
Then I have created another iPhone app and copied that "details" view to it (here fullscreen):
And now a warning is shown by Xcode 5.0.2:
Frame for "Image View" will be different at run time.
UIImageView and click [-o-] icon, then choose Reset To Suggested Constraints menu item.
Simulated metrics section does nothing in the runtime, it only us to figure out how layout will look like before compiling.
Also there is one more (better) approach, but you have to analyse what constraints
UIImageView has and change them accordingly for new layout (with added nav bar). You can try to post screenshot with those constraints here, so we can help you to figure out what happened. Go to Size Inspector in right panel and show us Constraints section.
Your constraints force
UIImageView to have the same horizontal align as labels below have and the same width. Plus you have constraints for fixed vertical space from the topmost label and navigation bar, width of
UIImageView depends on available space between nav bar and labels. I think it's good solution for current layout (without scrolling), because everything will fit into the screen for both 3.5" and 4" inch displays. In case you want different behaviour let me know in a comments.