Why I can't see the background image in the device, but appears on the simulator?
Here is the viewDidLoad:
[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"bg.png开发者_C百科"]]];
It can show the simulator, but not on the device, why?? thz.
Also check that the image isn't a PSD named with a PNG extension. The Simulator can show PSD images, the device can't. :)
The device is case-sensitive, so make sure you've got bg.png exactly right.
精彩评论