//商家电话
UILabel*leftMobileTitleLab = [[UILabelalloc]initWithFrame:CGRectMake(leftMobileLab.x,CGRectGetMaxY(leftMobileLab.frame)+2, leftMobileLab.width, leftMobileLab.height)];
leftMobileTitleLab.text=@"联系商家";
leftMobileTitleLab.textAlignment=NSTextAlignmentCenter;
leftMobileTitleLab.font= getTextLab.font;
leftMobileTitleLab.textColor=YFMOBILECOLOR;
[leftMobileViewaddSubview:leftMobileTitleLab];
//创建富文本
NSMutableAttributedString*attri1 = [[NSMutableAttributedStringalloc]initWithString:@"联系商家"];
//NSTextAttachment可以将要插入的图片作为特殊字符处理
NSTextAttachment*attch1 = [[NSTextAttachmentalloc]init];
//定义图片内容及位置和大小
attch1.image= [UIImageimageNamed:@"contact"];
attch1.bounds=CGRectMake(0, -5,20,20);
//创建带有图片的富文本
NSAttributedString*string1 = [NSAttributedStringattributedStringWithAttachment:attch1];
//将图片放在第一位
[attri1insertAttributedString:string1atIndex:0];
//用label的attributedText属性来使用富文本
leftMobileTitleLab.attributedText= attri1;