简体   繁体   English

在 iPad 中设置纵向和横向模式的启动图像

[英]Setting splash images for portrait and landscape mode in iPad

I have two images Default-Portrait.png and Default-Landscape.png in my resources folder.我的资源文件夹中有两个图像Default-Portrait.pngDefault-Landscape.png I want to set them as splash images for my application in the respective orientation modes.我想在各自的方向模式下将它们设置为我的应用程序的启动图像。 But when I run the application, I am not able to see any splash screen.但是当我运行应用程序时,我看不到任何启动画面。

What I am possibly missing?我可能缺少什么?

Just check your images again.只需再次检查您的图像。 Remove images from resources and add it again.从资源中删除图像并再次添加。 Make sure clean all target remove build folder from your project, and Run it again it will work.确保从您的项目中清除所有目标删除构建文件夹,然后再次运行它会起作用。

iPad Launch Image Orientations Filename | Dimensions

Default-Portrait.png                    | 768w x 1004h

Default-PortraitUpsideDown.png          | 768w x 1004h

Default-Landscape.png                   | 1024w x 748h

Default-LandscapeLeft.png               | 1024w x 748h

Default-LandscapeRight.png              | 1024w x 748h

Default.png                             | Not recommended

If you're using XCode4 (and you'd better:p ), just drag these images to the appropriate image wells on your project's page.如果您使用的是 XCode4(并且最好:p),只需将这些图像拖到项目页面上的相应图像井中。 If they don't fit, it will warn you.如果它们不适合,它会警告您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM