[IOS] Tips: UITableView A control in a custom cell cannot fully align the left and right boundaries of a cell

Source: Internet
Author: User

This is a very strange problem, due to some special needs, my tableview cell background color is transparent, where the control will have a background color, the first control and the last control I used the IB automatically set the constraint, align the cell's left and right boundary, But the automatic constraint is strange that the value is 8 (this value is the upper and lower left and right). Initially did not care because the display is good, but do not remember to upgrade the SDK to 8.2 or 8.3 start, left and right will be more blank.

After a variety of attempts to find a solution. The left and right constraints in the item's related to margin (in the impression of such a spell) uncheck the check, the value is set to 0.

After work and other people, Mac off No, by virtue of the memory of these words are not clear enough, there is time to revise this article.

[IOS] Tips: UITableView A control in a custom cell cannot fully align the left and right boundaries of a cell

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.