Reputation: 2600
I`m trying to fill a ImageView with a Pattern, but its increasing size rather than filling.
Upvotes: 0
Views: 302
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