【发布时间】:2011-08-01 17:49:28
【问题描述】:
我在 IOS 的 NSData 对象中有需要读取的 RTFD 数据。在 MacOSX 中我只是用 NSAttributedString 读取它们,但现在我知道它们在 IOS 中不受支持。
attribString = [[NSAttributedString alloc] initWithRTFD:note documentAttributes:&dict];
有什么方法可以在IOS中只读取RTFD数据的文本吗?
【问题讨论】:
-
虽然不支持 initWithRTFD:documentAttributes:,但从 iOS 3.2 开始支持 NSAttributedString 类!
标签: iphone cocoa-touch uitextview nsdata nsattributedstring