Fill background Image of a UIView

suggest change

Objective-C

UIGraphicsBeginImageContext(self.view.frame.size);
[[UIImage imageNamed:@"image.png"] drawInRect:self.view.bounds];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();     
self.view.backgroundColor = [UIColor colorWithPatternImage:image];

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents