Apps on IOS iphone 4inch do not have full screen, black borders on the upper and lower sides, and iphone 4inch

Source: Internet
Author: User

Apps on IOS iphone 4inch do not have full screen, black borders on the upper and lower sides, and iphone 4inch

I have been using the iPhone Retina (3.5-inch) simulator to test the IOS application. Everything is displayed normally, as shown in the following figure:

In application development, I use pure code for implementation. The company provides an iPhone 4S, and I use it to test that everything is displayed normally. The problem is that when I used the iPhone 5 and iPhone 5S real machine tests, I found that my app did not fill the screen display screen on the iPhone 5 and iPhone 5S, but there was a black line on the app screen, as follows:

Procedure:

1. I began to carefully check my code and found that no fixed value of 480 was used in setting the screen height in the whole project, and the screen size was obtained directly, then set the screen size.

2. Check the project resources and confirm that the default.png?defa@@2x.png=default-568h@2x.png startup image and other resources have been obtained.

3. I started searching on the Internet to check if there were any netizens who encountered similar problems and how they solved the problems. I also tried various methods provided by the Netizens (if xib is used, set the automatic layout of the view in the xib. If you use pure code, manually set the autoLayout,...) of the UIView ,...), there is no final result.

In this process, it was found that some netizens refused to publish the application because of this problem.

Solution:

1. I accidentally found that the Demo I wrote previously could be displayed normally on the iPhone 5S real machine. I created another project and ran it directly. It showed that it was normal. At this time, I was excited.

2. I carefully compared the similarities and differences between the two projects and found that "project configuration is the same". I am wondering, no problem.

3. The configuration of a project is as follows:

The Demo project configuration previously written is as follows:

The reason is that the iphone Portrait ios requires the R4 boot image. If there is no corresponding boot image, the system will consider it as a 5inch device. There will be black edges on and off. You only need to configure the Launch Image as the option of the following figure. The specific operations are as follows:

.

Drag and Drop the prepared image to the corresponding box in LaunchImage, delete the original app on the mobile phone, Clean the project, and run it again!


Some games have black edges in full screen mode, both top, bottom, and left.

Is that a dual-card note? To change the registry. Search by yourself on the Internet. In Windows 7, the game cannot be displayed in full screen.
 
After the iphone 5 photos are opened and browsed, there are black borders on the photo and there are no

How long have you been using OSS? All the photos taken by John 5 are black segments. I don't know if you have taken them, but I haven't found any solution to the problem of taking pictures of Tom 5 on various forums, there is one method, but it is very troublesome and the effect is not very good! In the Camera mode, there is a button in the lower right corner of the camera to exclude full screen photos. If you take a photo, you will be able to exclude the full screen pictures of small 5, please let me know! I have been searching for it for a long time. If I don't have it, I don't need it. I can't find it!
 

Related Article

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.