Skip to content

Commit

Permalink
Fixed iOS 7 deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
shrtlist committed Nov 13, 2013
1 parent 1f3f5d4 commit 9373b97
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Classes/MDAboutController.m
Original file line number Diff line number Diff line change
Expand Up @@ -280,13 +280,13 @@ - (void)generateCachedCells

CGSize textSize = CGSizeMake(300, 30);
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
textSize = [[(MDACTextCredit *)tempCredit text] sizeWithFont:[(MDACTextCredit *)tempCredit font]
constrainedToSize:CGSizeMake(450, 1000)
lineBreakMode:NSLineBreakByWordWrapping];
textSize = [[(MDACTextCredit *)tempCredit text] boundingRectWithSize:CGSizeMake(450, 1000)
options:(NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading)
attributes:@{NSFontAttributeName:[(MDACTextCredit *)tempCredit font]} context:nil].size;
} else {
textSize = [[(MDACTextCredit *)tempCredit text] sizeWithFont:[(MDACTextCredit *)tempCredit font]
constrainedToSize:CGSizeMake(300, 1000)
lineBreakMode:NSLineBreakByWordWrapping];
textSize = [[(MDACTextCredit *)tempCredit text] boundingRectWithSize:CGSizeMake(300, 1000)
options:(NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading)
attributes:@{NSFontAttributeName:[(MDACTextCredit *)tempCredit font]} context:nil].size;
}

[cachedCellCredits addObject:tempCredit];
Expand Down

0 comments on commit 9373b97

Please sign in to comment.