如果要做圖文混排可以利用NSMutableAttributedString
NSTextAttachment *attch = [[NSTextAttachment alloc] init];
attch.image = [UIImage imageNamed:@""];
NSAttributedString *mstr = [NSAttributedString attributedStringWithAttachment:attch];
[attrStr appendAttributedString:mstr];
比如你放在一個label上那麼就設置label.attributedText = attrStr