富文本中有中文字符会设置失效(10.3)
原因:可能是苹果10.3系统的bug.
解决方法:让富文本支持中文
NSBaselineOffsetAttributeName : @(NSUnderlineStyleSingle)
NSString *str = [NSString stringWithFormat:@"中文字符¥%@",@"9999"];
NSMutableAttributedString *attributeMarket = [[NSMutableAttributedString alloc] initWithString:str];
[attributeMarket setAttributes:@{NSStrikethroughStyleAttributeName: @(NSUnderlineStyleSingle), NSBaselineOffsetAttributeName : @(NSUnderlineStyleSingle)} range:NSMakeRange(0,str.length)];
_label.attributedText = attributeMarket;