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)