标签:
UIImage
*image = [UIImage imageNamed:@
"321.jpg"
];
//
1> 生成文本附件
NSTextAttachment
*textAttach
= [[
NSTextAttachment
alloc]
init];
textAttach.image
= image;
//
2> 使用文本附件创建属性文本
NSAttributedString
*strA
= [
NSAttributedString
attributedStringWithAttachment:textAttach];
self
.lblChat.attributedText
= strA;
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:
原文地址:http://blog.csdn.net/lianyinkui/article/details/46790657