-
图文混排
2016-05-06 10:27:59图文混排NSMutableAttributedString 图文混排
首先你先搞一个图片:NSTextAttachment * textImage = [NSTextAttachment new];
textImage.image = [UIImage imageNamed:<#name#>];
textImage.bounds = CGRectMake(0, 0, 40, 30);
NSMutableAttributedString * attrstring = [NSAttributedString appendAttributedString: [NSAttributedString attributedStringWithAttachment:textImage]];
收藏数
3,060
精华内容
1,224