Setting splash images for portrait and landscape m

2020-07-26 06:35发布

问题:

I have two images Default-Portrait.png and Default-Landscape.png in my resources folder. 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?

回答1:

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


回答2:

If you're using XCode4 (and you'd better :p ), just drag these images to the appropriate image wells on your project's page. If they don't fit, it will warn you.