Why No NSAttributedString on the iPhone?

前端 未结 6 1462
春和景丽
春和景丽 2020-12-11 12:12

Does anyone know what made Apple leave out NSAttributedString when turning AppKit into UIKit?

The reason I ask is that I would really like to use it in my iPhone app

6条回答
  •  星月不相逢
    2020-12-11 12:21

    The answer above indicates that NSAttributedString is available on OS 4.0 and above, but per the documentation it's available on 3.2:

    NSAttributedString Class Reference
    Inherits from NSObject
    Conforms to NSCoding, NSCopying, NSMutableCopying, NSObject (NSObject)
    Framework /System/Library/Frameworks/Foundation.framework
    Availability Available in iPhone OS 3.2 and later.
    Companion guide Attributed String Programming Guide
    Declared in NSAttributedString.h

提交回复
热议问题