vendredi 30 janvier 2015

Set BackgroundColor with Pattern Image results in black/transparent screen on iOS7


Vote count:

0




I'm trying to set a background image for my app. I'm using this code in my ViewDidLoad:



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

self.view.backgroundColor = [UIColor colorWithPatternImage:image];


When executed under iOS8 it works fine (for some reason).


Any ideas?



asked 2 mins ago







Set BackgroundColor with Pattern Image results in black/transparent screen on iOS7

Aucun commentaire:

Enregistrer un commentaire