iOS7 - Adjusting font size of multiline label to fit its frame
问题 I need to fit a multiline attributed text in a UILabel's frame. Reading this thread How to adjust font size of label to fit the rectangle? I started from Niels' solution in order to work with attributed text. Here's the code: the 't' of 'prospect' is put in a new line, whereas I need the words not to be truncated; in this example I expect the font size to be reduced a little more in order to fit 'prospect in a single line. UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 180