[英]Use of undeclared identifier 'NSLineBreakByWordWrapping' using xCode 4.3.3
I get "Use of undeclared identifier 'NSLineBreakByWordWrapping'" on xCode 4.3.3 which doesn't appear on the beta one. 我在xCode 4.3.3上获得了“使用未声明的标识符'NSLineBreakByWordWrapping'”,这在beta版本中没有出现。
It happens on this code: 它发生在这段代码上:
[text sizeWithFont:font constrainedToSize:textConstraintRect.size lineBreakMode: NSLineBreakByWordWrapping].height);
What do I need to import to solve this one? 我需要导入什么才能解决这个问题?
Please help, 请帮忙,
或者NSLineBreakMode.ByWordWrapping
在swift中
请改用UILineBreakModeWordWrap
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.