In my project, which exists for some years now there is a piece of code which is deprecated. I know, I should have taken care of it a long time ago, but I didn't (shame on me). See the my used code below:
// Tell the label to use an unlimited number of lines
[discLabel setNumberOfLines:0];
[discLabel setBackgroundColor:[UIColor clearColor]];
[discLabel setFont:[UIFont systemFontOfSize:15]];
discLabel.textColor = [UIColor colorWithRed:255 green:255 blue:255 alpha:1.0];
CGSize infoLabelSize = [infoLabel.text sizeWithFont:infoLabel.font
constrainedToSize:CGSizeMake(infoScroll.frame.size.width, 5000)
lineBreakMode:NSLineBreakByWordWrapping];
infoLabel.frame = CGRectMake(0, 0, infoLabelSize.width, infoLabelSize.height);
infoScroll.contentSize = infoLabelSize;
[infoScroll addSubview:infoLabel];
[self.view addSubview:infoScroll];
The developer site tells me to use boundingRectWithSize but I simply can't get it reworked. It is a piece of information what was shown in a scrollable textarea on a flipsideViewController. Any suggestions?
EDIT: I added some of my code to show all of it concerning the discLabel