In iOS 7, il metodo:
- (CGSize)sizeWithFont:(UIFont *)font
constrainedToSize:(CGSize)size
lineBreakMode:(NSLineBreakMode)lineBreakMode
e il metodo:
- (CGSize)sizeWithFont:(UIFont *)font
sono deprecati. Come posso sostituire
CGSize size = [string sizeWithFont:font
constrainedToSize:constrainSize
lineBreakMode:NSLineBreakByWordWrapping];
e:
CGSize size = [string sizeWithFont:font];
-sizeWithAttributes:
.