---restore content starts---
I think the sdautolayout layout is the best use of the third-party library, here to learn sdautolayout usage summarize
1 Usage Description:2 1.1> Leftspacetoview (Self.view,Ten)3 A method with "Spacetoview" in the method name represents the spacing of a reference view, which requires passing 2 parameters: (UIView) referring to the View and (cgfloat) spacing values4 1.2> Widthratiotoview (Self.view,1)5 Methods with "Ratiotoview" in the method name indicate that the width or height of the view is proportional to the corresponding property value of the reference view, and 2 parameters are passed: (UIView) refer to view and (cgfloat) multiples6 1.3>Topequaltoview (view)7 A method with "Equaltoview" in the method name means that a property of view is equal to the corresponding property value of the reference view, and 1 parameters need to be passed: (UIView) Reference View8 1.4> Widthis ( -)9 A method with "is" in the method name means that a property value of view is equal to the parameter value, and 1 parameters need to be passed: (cgfloat) valueTen 1.5> Autoheightratio (0) One Autoheightratio () 0 automatically calculates the height according to the text (a value greater than 0 sets the ratio of height to width based on this value) A 1.6>The Cell is highly adaptive (just the following line of code) -[Self Setupautoheightwithbottomview:bottomview bottommargin: the]; - //Bottomview bottom view; distance from cell at bottom of BottomMargin
---restore content ends---
Learning sdautolayout Summary of usage of third-party libraries