Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copied a View to a project with Navigation Controller - Frame for "Image View" will be different at run time

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):

xcode screenshot

The view scene on the very right side has an image view and 5 labels underneath it - to display user details:

app screenshot

Then I have created another iPhone app and copied that "details" view to it (here fullscreen):

xcode screenshot

And now a warning is shown by Xcode 5.0.2:

Frame for "Image View" will be different at run time.

Is it because some space on the top of the view will be occupied by the navigation bar?

And how to fix it please?

I've tried clicking the [-o-] icon, but instead of resolving my layout issue it has messed the whole layout (the labels jumped to the left).

Also I've tried setting checkboxes on the right side in the Xcode Attributes Inspector, but haven't be able to find any good combination there (and I am not sure what "inferred" means in Xcode context).

UPDATE:

Ossir's suggestion has worked for me, thank you.

I'm posting a new screenshot (here fullscreen) in case anybody have more improvement suggestions:

xcode screenshot

like image 329
Alexander Farber Avatar asked Nov 27 '22 13:11

Alexander Farber


1 Answers

I found that unchecking the Adjust Scroll View Insets checkbox for the navigation controller in question cleared the warning

Adjust Scroll View Insets

like image 200
Damo Avatar answered Dec 06 '22 00:12

Damo