iphone - iOS Universal app iPad launch images not being used -
I'm following the iOS Programming Guide "to" provide images Launch various orientation and not get my iPad the specific launch images for the work I am if I read the docs, then "default ~ iPad page" to be taken as the projection image if I launch my app in the iPad simulator, but instead " Default of "default.png" Doing industry.
If I say to run the simulator as an iPhone4, then it uses my "Default@2x.png" correctly. But it just leaves me more confused why the iPad version is not working.
Nobody knows how iPad-specific launch images work?
A few ways to do this is from the "iOS App Programming Guide" my preferred method
< p> providing images launch various orientation:-
in Info.plist,
code> UILaunchImageFile set Make: Files in your bundle using this naming structure:
Code> & lt; Basename & gt; & Lt; Orientation_modifier & gt; & Lt; Scale_modifier & gt; & Lt; Device_modifier & gt; .png
Example: I used the iPad all these names, iPhone, 1x and 2x:
MyAppName-Portrait ~ iPad MyAppName- Landscape ~ ipad.png MyAppName-Portrait @ 2x ~ ipad.png MyAppName- Landscape @ 2x_ipad.png MyAppName- Portrait ~ iphone.png MyAppName- Landscape ~ iphone.png MyAppName- Portrait @ 2x_iphonekpng MyAppName- Landscape @ 2x ~ iphone.png // iphone 5 MyAppName- Portrait -568 h@2x_iphone.png MyAppName- Landscape 568h@2x~iphone.png
caution: < Code> @ 2x in the right place, this is a case where it does not fit at the end of the file name
This method works particularly well Does when you have multiple build targets And you do not want to use Default.png filename
Comments
Post a Comment