'sizeWithFont:' is deprecated: first deprecated in iOS 7.0 - Use -sizeWithAttributes:
2014-09-29 17:00
941 查看
// CGSize numberSize = [self.value sizeWithFont:self.font];
CGSize numberSize=[self.value
sizeWithAttributes:@{NSFontAttributeName:self.font}];
CGSize numberSize=[self.value
sizeWithAttributes:@{NSFontAttributeName:self.font}];
相关文章推荐
- sizeWithFont:constrainedToSize:' is deprecated: first deprecated in iOS 7.0 - Use -boundingRectWithS
- iOS一个'initWithRequest:delegate:' is deprecated: first deprecated in iOS 9.0 - Use NSURLSession (see NSURLSession.h) Warning引发的思考
- 'minimumFontSize' is deprecated: first deprecated in iOS 6.0
- [问题记录]'dismissModalViewControllerAnimated:' is deprecated: first deprecated in iOS 6.0
- iOS---stringByAddingPercentEscapesUsingEncoding:' is deprecated: first deprecated in iOS 9.0 - Use -stringByAddingPercentEncodingWithAllowedCharacters: instead,
- IOS7.0 sizeWithFont:constrainedToSize:lineBreakMode:方法 iOS7 Deprecated
- IOS7.0 sizeWithFont:constrainedToSize:lineBreakMode:方法 iOS7 Deprecated
- UIAlertView' is deprecated: first deprecated in iOS 9.0 - UIAlertView is deprecated. Use UIAlert
- Replacement for deprecated sizeWithFont: in iOS 7?
- 'O_BINARY' undeclared (first use in this function)
- C编译时`true' undeclared (first use in this function)
- UITextAlignmentCenter' is deprecated: first deprecated in iOS 6.0
- IOS7.0 sizeWithFont:constrainedToSize:lineBreakMode:方法
- error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
- C编译时`true' undeclared (first use in this function)
- '__curl_rule_01__'declared as an array with a negative size
- "dismissModalViewControllerAnimated" is deprecated : first deprecated in iOS 6.0
- `pid_t' undeclared (first use in this function)
- error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
- 关于error C3163: '_vsnprintf': attributes inconsistent with previous declaration 编译错误的