2012-08-29 22 views
1

我在iPhone應用程序中使用OHAttributedLabel,但我收到警告。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 

而且,我沒有得到任何解決方案,這可以在任何一個建議我如何解決它,如果我上傳我的應用程序,不刪除此警告將我的應用程序被蘋果拒絕。

+0

IMO應用程序不會被拒絕。 –

回答

3

那麼,正如警告所說,numberOfLines不支持OHAttributedLabel。刪除警告的唯一方法是隻設置numberOfLines屬性,直到OHAttributedLabel支持它。

如果你的應用使用NSLog()它不會被蘋果拒絕,但你應該避免它,因爲這是一個壞習慣。日誌信息對您和您的用戶而言將毫無用處,如果發送了很多日誌消息,則會降低性能。

0

由於它不支持NSAtributedString的大多數功能,因此出現這些錯誤。

最好使用TTTAttributedLabel