NSTextAttachment 2017-03-18 NSTextAttachment: 使用图片创建一个NSAttributedStringUIImage *image = [UIImage imageNamed:@"image_name"];NSTextAttachment *attachment = [[NSTextAttachment alloc] init];attachment.image = image;NSAttributedString *attrStr = [NSAttributedString attributedStringWithAttachment:attachment]; 下一篇 设置LaunchImage