How to do multiline UILabel in ios?
问题 I'm dynamically populating the title (UILabel). Sometime it's bit too long and IOS squeeze the font to fit in the width. Is there a way to do multiline with using same font size? 回答1: Set adjustsFontSizeToFitWidth to NO and numberOfLines to 0. numberOfLines Docs This property controls the maximum number of lines to use in order to fit the label’s text into its bounding rectangle. The default value for this property is 1. To remove any maximum limit, and use as many lines as needed, set the