Questions tagged «sizewithfont»

8
在iOS 7中替换已弃用的-sizeWithFont:constrainedToSize:lineBreakMode :?
在iOS 7中,方法: - (CGSize)sizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size lineBreakMode:(NSLineBreakMode)lineBreakMode 和方法: - (CGSize)sizeWithFont:(UIFont *)font 不推荐使用。我该如何更换 CGSize size = [string sizeWithFont:font constrainedToSize:constrainSize lineBreakMode:NSLineBreakByWordWrapping]; 和: CGSize size = [string sizeWithFont:font];
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.