开发者

UIImageView loads file on simulator but not on device?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜