Seeing black bars at the top and bottom of the iPhone X Simulator Ask Question

Seeing black bars at the top and bottom of the iPhone X Simulator Ask Question

Running my App in the iPhone X Simulator (GM Seed) I am noticing two strange effects:

  • the App does not use the full screen space (top and bottom area is black)
  • a strange white bar beneath the title bar

ここに画像の説明を入力してください

Does anybody know what is happening here and how to resolve this? I can't find any new settings in Interface Builder.

ベストアンサー1

起動イメージを使用する場合 (はるかに簡単な起動画面ファイルの代わりに)、サポートするデバイスのサイズごとに適切なサイズの起動イメージを提供する必要があります。追加の起動イメージを追加すると、アプリは新しい画面サイズを活用できるようになります。

新しい iPhone X には、375pt × 812pt の 3 倍の画像である 1125px × 2436px のサイズの起動画像が必要です。

もちろん、個別の起動画像の代わりに起動画面ファイルを使用するように切り替えれば、追加の作業なしでアプリはすべてのデバイス サイズに自動的に適応します。

おすすめ記事