1

我在我的 iPhone 应用程序中使用 OHAttributedLabel,但我收到了警告。

Warning: the numberOfLines property is not yet supported by CoreText and OHAttributedLabel. (this property is ignored right now)
 This is a known issue (Help to solve this would be greatly appreciated).
 See https://github.com/AliSoftware/OHAttributedLabel/issues/34

另外,我对此没有任何解决方案,任何人都可以建议我如何解决它,如果我在不删除此警告的情况下上传我的应用程序,我的应用程序将被苹果拒绝。

4

2 回答 2

3

好吧,正如警告所说,OHAttributedLabelnumberOfLines不支持。删除警告的唯一方法是在OHAttributedLabel支持之前不设置属性。numberOfLines

如果你的应用程序使用NSLog()它不会被 Apple 拒绝,但你应该避免它,因为这是一个坏习惯。日志信息对您和您的用户将毫无用处,如果发送了许多日志消息,则会降低性能。

于 2012-08-29T08:08:55.953 回答
0

由于这些错误,因为它不支持 NSAtributedString 的大多数功能。

最好使用TTTAttributedLabel

于 2012-08-29T08:11:07.810 回答