#pragmaMark-uiscrollview content Vertical adaptive and content lateral adaptive method@interfaceUiscrollview (sdautocontentsize)/** Set ScrollView content vertical Adaptive*/- (void) Setupautocontentsizewithbottomview: (UIView *) Bottomview bottommargin: (cgfloat) bottommargin;/** Set ScrollView content lateral adaptive*/- (void) Setupautocontentsizewithrightview: (UIView *) Rightview RightMargin: (cgfloat) RightMargin;@end#pragmaMark-uilabel open Rich Text layout, set single-line text label width adaptive, set label to display the maximum number of rows@interfaceUILabel (sdlabelautoresize)/** Whether it is attributedstring*/@property (nonatomic) BOOL isattributedcontent;/** Set single line text label width Adaptive*/- (void) Setsinglelineautoresizewithmaxwidth: (cgfloat) maxWidth;/** Sets the maximum number of rows the label can display, and if you pass 0, all line text is displayed*/- (void) Setmaxnumberoflinestoshow: (Nsinteger) LineCount;@end
Ios--sdautolayout Width Adaptive