iPhone simulator isn't showing splash screen

匆匆过客 提交于 2019-12-24 04:18:07

问题


All I have to do to show a splash screen in a view-based application is drag an image into the resources folder and name it default.png, correct? This is what I did, but the image doesn't show.


回答1:


When you added it, did you tell it to copy to output location? It was a checkbox on the dialog that showed up after you added it. Try readding and make sure this checkbox is checked.

UPDATE from comments: a clean build fixed the problem




回答2:


It sounds like what you are doing is correct, but reading through the documentation might help you work out what the problem is.

Perhaps your Default.png is not in the root of your bundle? To check, expand the Products section in the Groups & Files panel, then select Reveal in Finder from the context menu. Then right click on the app bundle in Finder, and select Show Package Contents. You should see your Default.png listed there.



来源:https://stackoverflow.com/questions/3383812/iphone-simulator-isnt-showing-splash-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!