iOS Development Tips-Learn to wrap controls (some view locations are not easily modifiable or susceptible to external influences due to code or system reasons)

Source: Internet
Author: User

First, two such problems were encountered in the project.

  • The first place-is the comment interface of the Headerview, because directly put their own xib loaded put in there, Xib Setframe wrote a lot of = = + +, each time the rolling, will frequently call xib method Setframe, resulting in the final xib disappear or more and more large. Yes , Headerview height is blocked, how to set up also no use. Perfect after packing.
  • Workaround:

  • Second place-the header text in TableView adjusts the left spacing:
  • Solution: TheTitleforheaderinsection method is not necessary because a string is returned. Directly with viewforheaderinsection, return to view, wrap a label with view, Sets the x value of the label in the view so that the spacing is set

iOS Development Tips-Learn to wrap controls (some view locations are not easily modifiable or susceptible to external influences due to code or system reasons)

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.