Is there a way to auto size a UILabel? given size 40 x 40 the text font size would adjust based on the number of characters.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the
adjustFontSizeToFitWidthproperty. So something like this.In Interface Builder there is a check box on the Label Attributes screen to allow you to adjust the font size to fit the label as well.