Wednesday 28 January 2015

sizewithfont:constrainedToSize:lineBreakMode: deprectataed in HUD

replace this text
CGSize labelSize = [detailsLabel.text boundingRectWithSize:CGSizeMake(frame.size.width - 4*margin, maxHeight)
                                                               options:NSStringDrawingUsesLineFragmentOrigin
                                                            attributes:@{NSFontAttributeName:detailsLabel.font}
                                                               context:nil].size;

No comments:

Post a Comment