Here is the viewDidLoad:
[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"bg.png"]]];
It can show the simulator, but not on the device, why?? thz.
Here is the viewDidLoad:
[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"bg.png"]]];
It can show the simulator, but not on the device, why?? thz.
The device is case-sensitive, so make sure you've got bg.png exactly right.