In iOS application, I have 250x85pt UIView. I would like it to have image-based tiled background. The original image is 398x398 px. I would like my image to tile.
When I run application, my image tiles, but for some reason it scales as follows:
I used the following code to achieve it:
var image = UIImage(contentsOfFile: "myfilepath.png")!
var uicolor = UIColor(patternImage: image)
uiview.backgroundColor = uicolor
Could you explain 1. why ios scales my image, and 2. how do I draw tiled image without scaling?