IPhone x Full Screen fit

Source: Internet
Author: User

When your project runs on the iphone x Simulator, does the following happen: Cannot full screen,, up and down appeared the Big Black Edge, by the previous in set up the Start page, the start page removed the appearance of the upper and lower black box, and then thought that as long as the iphone x set a corresponding launch page, it will achieve full-screen display.



The implementation method is as follows, first open the Launchimage (I start the page using the Launchimage) put iOS8.0 and later hook


Make a splash image 1125 x 2436 pixels, and then drag it into the dashed box in the iphone x.

Remove the original app from the emulator or the real machine and rerun it. The effect is as follows




Full screen problem has been resolved, because my apptabbar is customized, view on the Add button, location is a little messy, these location and size problems can only one out of the code to fit, you can judge the screen size of the method to differentiate the iphone X

Size = (width = 375, height = 812)


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.