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

后端 未结 4 1454
粉色の甜心
粉色の甜心 2021-01-06 07:13

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\'

4条回答
  •  情歌与酒
    2021-01-06 07:30

    It looks like you run your app on a 3.5" screen while you've been designing it for a 4" screen in interface builder. You should set all missing constraints so that autolayout 'knows' how to lay out your image view and labels.

    I would set a fixed height for the labels and a variable height for the image view. Then set the content mode of your image view to "aspect fill" (note that in this case you'll loose a part of the image instead of having gray stripes on the left and right sides).

提交回复
热议问题