NSMutableAttributedString *string = [[NSMutableAttributedString alloc] initWithString:@"1234567" attributes:nil];
// 创建图片图片附件
NSTextAttachment *attach = [[NSTextAttachment alloc] init];
attach.image = image;
attach.bounds = CGRectMake(0, 0, image.size.width, image.size.height);
NSAttributedString *attachString = [NSAttributedString attributedStringWithAttachment:attach];
//将图片插入到合适的位置
[string insertAttributedString:attachString atIndex:index];
lbText.attributedText = string;