0

On my storyboard I have a UIImageView which doesn't take up the whole screen, as intended. At runtime the image takes up the whole screen, which is a problem because I want to add some buttons on the top.

Here is where I assign the picture to the view:

_imageView.image = [UIImage imageNamed:@"floors.png"];

And here are the relevant screenshots:

UIImageView in storyboard (doesn't take up full view) At runtime, when it takes up full view and overlaps 'Button'

How can I get the image to stay the same size as on the storyboard?

4

1 に答える 1

2

ここに画像の説明を入力

imageview のビュー モードをスケールに設定して、ストーリーボードに入力します

チェックする別のオプションは、自動レイアウトを適切に設定しているかどうかです

于 2013-02-17T19:15:41.437 に答える