我已经成功使用NSTextAttachment
sUITextView
一段时间了,但是只使用过该image
属性,如下所示:
NSTextAttachment *attachment = [[NSTextAttachment alloc] initWithData:nil ofType:nil];
attachment.image = [UIImage imageNamed:@"someImage"];
我有initWithData:ofType:
兴趣尝试NSData
使用.NSTextAttachment
UITextView
例如,我可以传递某种NSString
或某种类型的数据UIView
吗?甚至是PDF?还是仅限于实际UIImage
数据?