I need to italicized and bold an NSMutableAttributedString
, I tried some combinations but only one attribute works.
[attributedText addAttributes:@{NSFontAttributeName:[UIFont italicSystemFontOfSize:14], NSFontAttributeName:[UIFont boldSystemFontOfSize:boldTextFontSize]}
range:range3];
and
[attributedText addAttributes:@{NSFontAttributeName:[UIFont italicSystemFontOfSize:14]}
range:range3];
[attributedText addAttributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:boldTextFontSize]}
range:range3];
Only one of them is applied to the string. Is there a practical way to solve this problem?