LoginSignup
54
54

More than 5 years have passed since last update.

Xcode 6 で新規作成したプロジェクトを iPhone 5 or 5s w/ iOS 7 上で実行すると上下に黒帯が入る

Last updated at Posted at 2014-09-21

ある程度書いてから気づいたので泣きそうになった。

結論としては、iPhone 4s -> 5 のときのように、起動画面用のリソースの有無によりアプリの表示サイズを決定しているようだ。

Asset Catalog 等で、LaunchImage として@2x-568h@2xの画像(定義)を用意してあげれば、きちんとフルスクリーンでアプリが実行される。
同時に LaunchScreen も設定しておけば、iOS 8 ではそちらが使われる。


Asset Catalog を使う例

ss 2014-09-22 5.54.13.png

[Use Asset Catalog] -> [Migrate]

ss 2014-09-22 5.54.40.png

ss 2014-09-22 5.55.45.png

54
54
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
54
54