在iOS 7中,sizeWithFont:现已弃用.我现在如何将UIFont对象传递给替换方法sizeWithAttributes:?
在Objective-C中我能够使用:
CGSize stringsize =
[strLocalTelefone sizeWithAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14.0f]}];
Run Code Online (Sandbox Code Playgroud)
但在Swift语言中,我没有找到任何解决方案.
任何帮助?