UILabelに画像を設定するにはUILabelのattributedTextプロパティに
NSTextAttachmentを設定したNSAttributedStringを設定します。
UILabelに画像を設定する
NSMutableAttributedString *as = [[NSMutableAttributedString alloc] initWithString:@"message"];
NSTextAttachment *at = [[NSTextAttachment alloc] init];
at.image = [UIImage imageNamed:@"sample"];
at.bounds = CGRectMake(0,
1,
at.image.size.width/[[UIScreen mainScreen] scale],
at.image.size.height/[[UIScreen mainScreen] scale]);
NSAttributedString *ns = [NSAttributedString attributedStringWithAttachment:at];
[as insertAttributedString:ns atIndex:0];//画像をinsertするインデックスを指定
self.myLabel.attributedText = as;