开发者

UIImageView loads file on simulator but not on device?

开发者 https://www.devze.com 2022-12-12 00:41 出处:网络
This loads the image on the simulator but not on the device: UIImageView *splashImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@\"SplashPH.png\"]];

This loads the image on the simulator but not on the device:

    UIImageView *splashImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SplashPH.png"]];

[self.vie开发者_C百科w addSubview:splashImage];

Any help appreciated // :)


Did not verify but you might want to use the NSBundle pathForResource:ofType: call - see How to fopen() on the iPhone?

0

精彩评论

暂无评论...
验证码 换一张
取 消