Created
February 20, 2014 09:45
-
-
Save thoretton-edwin/9110179 to your computer and use it in GitHub Desktop.
iOS edit background view with UIImage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Background design | |
UIGraphicsBeginImageContext(self.view.frame.size); | |
[[UIImage imageNamed:@"appBackground.png"] drawInRect:self.view.bounds]; | |
UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); | |
UIGraphicsEndImageContext(); | |
self.view.backgroundColor = [UIColor colorWithPatternImage:image]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment