Monday, 15 September 2014

ios - Set UIImageView with size 10x10 as background for UIView -


itemprop = "text">

I have a 10x10 px image and I have to set the image as background to UIView, the image Is horizontally and vertically copied, not spreading, is it possible to do this with iOS?

You can do this:

  view.backgroundColor = [ UIColor colorWithPatternImage: [UIImage imageNamed: @ "bodyBG"]];   

By default it is copied horizontally and vertically.

No comments:

Post a Comment