Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
333 views
in Technique[技术] by (71.8m points)

iphone - How to correctly name all those Launch Images for an universal app?

Default.png for iphone, Default4.png for iPhone 4 (or is it Default@2x.png?), and Default-iPad.png. Is that correct?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Here's the list of default launch image file names as of iOS 6:

  • Default.png (iPhone)
  • Default@2x.png (iPhone Retina 3.5 inch)
  • Default-568h@2x.png (iPhone Retina 4 inch)
  • Default-Portrait.png (iPad in portrait orientation)
  • Default-Portrait@2x.png (iPad Retina in portrait orientation)
  • Default-Landscape.png (iPad in landscape orientation)
  • Default-Landscape@2x.png (iPad Retina in landscape orientation)

You can set the key UILaunchImageFile in your info.plist to override Default in all of the file names above. For example, if you specify the value LaunchImage in this key, then the launch image for a standard resolution iPhone would be LaunchImage.png.

Additionally, if you want to provide separate launch images for iPad apps that are flipped 180-degrees from the standard, you can substitute the following modifiers in place of -Portrait and -Landscape:

  • -Portrait (home button down)
  • -PortraitUpsideDown (home button on top)
  • -LandscapeLeft (home button on left side)
  • -LandscapeRight (home button on right side)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...