UIGraphicsBeginImageContext(self.view.frame.size)
UIImage(named: "background.png")?.drawInRect(self.view.bounds)
let image: UIImage! = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
self.view.backgroundColor = UIColor(patternImage: image)
Sign up here with your email
1 comments:
Write comments//background image
ReplyUIGraphicsBeginImageContext(self.view.frame.size);
[[UIImage imageNamed:@"login.jpg"] drawInRect:self.view.bounds];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
self.view.backgroundColor = [UIColor colorWithPatternImage:image];
ConversionConversion EmoticonEmoticon