Ios7 在iOS 7中使用NSForegroundColorAttributeName时,带表情符号的字符串将被替换

Ios7 在iOS 7中使用NSForegroundColorAttributeName时,带表情符号的字符串将被替换,ios7,nsmutableattributedstring,Ios7,Nsmutableattributedstring,当我将NSForegroundColorAttributeName与包含表情符号的字符串一起使用时,字符串会垂直移位 下面是一个例子: UILabel*label1=[[UILabel alloc]initWithFrame:CGRectMake(101001030021)]; label1.text=@“@Hashtag”; //label1.backgroundColor=[UIColor-redColor]; label1.numberOfLines=0; label1.shadowCol

当我将NSForegroundColorAttributeName与包含表情符号的字符串一起使用时,字符串会垂直移位

下面是一个例子:

UILabel*label1=[[UILabel alloc]initWithFrame:CGRectMake(101001030021)];
label1.text=@“@Hashtag”;
//label1.backgroundColor=[UIColor-redColor];
label1.numberOfLines=0;
label1.shadowColor=[UIColor-colorWithWhite:1 alpha:0.5];
label1.shadowOffset=CGSizeMake(1,1);
[label1 sizeToFit];
[self.view addSubview:label1];
NSString*comment=@“@Hashtag