There is a gap in the IOS pin constraint issue

Source: Internet
Author: User
Tags dashed line

Today, when you add constraints to your view to compare previously added constraints, there are two layers of light red wireframe a solid line and a dashed line, whereas the previous demo added only a solid blue wireframe.

The constraint 1 added today is as follows:

Figure 1

As previously added, constraint 2 shows:

Figure 2

Later, when you add a button to the first constraint under a peer view, the Discovery button leaks part of the

=

This problem does not occur if you are constrained in the second way

=

What is this for?

The original is the margin attribute in mischief. The margin property represents the distance from the surrounding element, as opposed to the padding attribute representing the distance within the element from its own boundary. As shown in [1]:

When you add a PIN constraint, the constrain to margins option is checked by default, so that the added constraint automatically uses the default margin constraint

Therefore, when adding pin constraints, found that there is a gap, and "leaking out" part of the hope to be obscured the content, must be careful to pay attention to this problem.

Reference

[1] http://blog.163.com/email_wangyong/blog/static/126152455200972431013536/

There is a gap in the IOS pin constraint issue

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.