I have a Text View box and I want that rectangle to stay the same size while the text inside autoshrinks to fit the box. The reason I need this is because the text is pulled from a plist and the strings are all different lengths. Labels have an Autoshrink feature which is exactly what I want, but I can’t figure out a way even through code to get a Text View to do the same thing. Please help!
Share
UILabels can have more than one line of text. You just need to set the following:I’m not entirely sure if this works, but you can then combine this with
label.adjustsFontSizeToFitWidth = YES;to have a multi-line label that autoshrinks text.