i have an ipad app (>30 views / pages) each view has a unique background.
the problem: whats the best way to set the background (memory friendly)
is there a better way than adding: uiimageview "backgroundView" as a subview?
version1:
[[UIImage alloc] initWithData:imageData];
which seems to be problematic with the retina switch
version2:
self.layer.contents = (id)image.CGImage;
version 3:
UIImage* image = [UIImage imageWithContentsOfFile:fileLocation];
version 2 seems to work fine. maybe someone tell me whats the best approach, and why ;)
thank you Alex
CGImage
is problematic with retina ... version3. is best for memory friendly !