I have a fullscreen background image that is tiled, i.e. it has to be reproduced a few times horizontally and vertically in order to make a big one. Like in the browsers on
I use a variation of @Rivera's solution:
Put the following in a UIView extension:
- (void)setColorPattern:(NSString *)imageName { [self setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:imageName]]]; }
Then you can set the background pattern in the storyboard/xib file: