Luciano Nascimento
Luciano Nascimento

Reputation: 2600

Fill ImageView with a Pattern

I`m trying to fill a ImageView with a Pattern, but its increasing size rather than filling.

Upvotes: 0

Views: 302

Answers (1)

bturner
bturner

Reputation: 514

you can create a resizable tile image from a previous image by doing

tileImage = [originalImage resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0) resizingMode:UIImageResizingModeTile];

now, you can take this image and set it in any image view. the image will tile in order to fill the entire image view.

Upvotes: 1

Related Questions