开发者

Interface Builder UIImageView not showing image, only black screen

I have a UIView in Interface Builder and set up different UIImageViews for the background 开发者_如何学JAVAimages that I want displayed that are not going to move at all (thus I didn't think I needed IBOutlets for them).

However, when the view is loaded on the iPad, it shows a black screen, and none of the images are shown.

Does something need to be set in Interface Builder to show the images?

Thanks


When you add the image to the Resources folder, you have to make sure that you check the correct target. In your case check the iPad target. I hope this works for you.


You do need to use IBOutlets to do this


I had a similar bug while using cocoa pods. The pod included a Default.png file that was being selected in interface builder over the file with the same name in the regular project.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜