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

前端 未结 10 1166
独厮守ぢ
独厮守ぢ 2020-11-22 14:32

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)
相关标签:
10条回答
  • 2020-11-22 14:59

    I have figured out this issues in iPhone X. Launch image size (1125*2436px) Please flow this below steps. 1.i)Choose your project name in Xcode. ii)Select your project target iii)Then select Launch images source

    1. You can get Migrate popup i) Choose Assets ii)Select Migrate

    1. After that select your Assets.xcassets in your project

    2. Then select Launch image in assets i)Then select attribute inspector

    3. finally check your Launch image source. you can see set Launch image.

    0 讨论(0)
  • 2020-11-22 14:59

    iPhone X needs different launch image sized 1125px x 2436px (375pt x 812pt @3x).

    Check human interface guidelines for more details.

    0 讨论(0)
  • 2020-11-22 15:01

    When using launch images (instead of the much easier Launch screen file), you need to provide the properly sized launch image for each device size you wish to support. Once you add the additional launch image, your app should take advantage of the new screen size.

    The new iPhone X requires a launch image sized at 1125px × 2436px which is a 3x image for 375pt × 812pt.

    Of course if you switch over to using a Launch screen file instead of individual launch images, your app will automatically adapt to all device sizes without any additional work.

    0 讨论(0)
  • 2020-11-22 15:01

    Just had this problem... When I selected the project & the correct target I had a blank for the 'launch screen file' under the app icons and launch screen images tab. I set it to the default LaunchScreen and the resizing issue I faced was taken care of.

    0 讨论(0)
提交回复
热议问题