linkas
linkas

Reputation: 173

iOS Xcode make background image scale to fill

I want to have the same background for every size of iPhones and iPads using scale to fill mode.

This is my background:

enter image description here

This is how my Image View looks in Xcode:

enter image description here

The question is why it doesn't scale to fill when I run this on emulator (iPhone 4s)?

enter image description here

Any ideas for this problem?

Upvotes: 0

Views: 3012

Answers (1)

Kirit Modi
Kirit Modi

Reputation: 23407

Set constrain of imageView as below image. Add adding 4 Constrain.

enter image description here

OUTPUT :

enter image description here

Upvotes: 6

Related Questions