New iOS project, run-time flash, does not show the picture of the interface, as well as the resolution of adaptive problems

Source: Internet
Author: User

Recently began to self-study iOS, previously looked for information is relatively old, see the information inside the painting interface is painted in. xlb file, and I draw out to run out is the following, which is not the same as the said. So I Baidu to know Xcode6.1 version of the normal interface display should be written in the Main.storyboard, and I put the interface written in the launchscreen.xlb inside, so the interface is just a flash.

After re-painting the interface, did not make any settings, this time the interface resolution and simulator is not quite the same, the interface a bit of deviation, see Baidu said to remove the two √, then removed, with the IPhone6 simulator is a bit biased, replaced by the IPhone5S simulator display interface normal.

So the resolution problem is not actually solved, I want to achieve the purpose is adaptive resolution. So the above two √ hook back again. Then we can realize an absolute layout by changing the boundary spacing. I then select the button I drew to increase the spacing constraint around the boundary.

And then out of the effect is this:

Although the self-adaptation, but the painting wind is not the same AH. Think about, the upper and lower bounds of the constraint is deleted, leaving only left and right boundary constraints:

So the effect is much better than just now.



Alas, the blind toss for 2 hours.

New iOS project, run-time flash, does not show the picture of the interface, as well as the resolution of adaptive problems

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.