2

iPadとiPhoneでポートレートモードでのみ動作するアプリを完成させています。そのため、横向きの起動画像は提供していません。含めることはできますが、表示されることはないため、アプリのスペースを節約したいと思います。

XCodeがiPadの風景画像に「Default.png」と「Default@2x.png」を自動割り当てしようとするのを止めるにはどうすればよいですか?これらの画像はiPhone用であり、サイズが間違っているため、これにより警告が表示されます。または、表示される警告を抑制するための解決策で十分です。

4

1 に答える 1

2

Control-click on an unwanted iPad launch image in the Summary window and choose Delete. This will remove the reference to the image as a launch image for iPad. Even better, go ahead and include solid black PNG images for the unneeded launch images. They will be compressed by Xcode when it builds your app, so that they will take up virtually no space in the app bundle.

I regard the fact that Xcode automatically creates default launch images for iPhone but not iPad as a bug. I suggest you complain about this behavior at bugreporter.apple.com.

EDIT: Just to be clear, what you want is a minimal set of properly sized images with the following names:

  • Default.png
  • Default@2x.png
  • Default-568h@2x.png
  • Default-Portrait~ipad.png
  • Default-Landscape~ipad.png
  • Default-Portrait@2x~ipad.png
  • Default-Landscape@2x~ipad.png

This will prevent Xcode from using e.g. an iPhone launch image in an iPad slot.

于 2012-11-21T23:59:17.497 に答える