NSMutableAttributedString's attribute NSStrikethroughStyleAttributeName doesn't work correctly in iOS8

后端 未结 6 1188
猫巷女王i
猫巷女王i 2020-12-31 21:36

I have a mutable attributed string without NSStrikethroughStyleAttributeName attribute like this:

NSMutableAttributedString *str1 = [[NSMutableAttributedStri         


        
6条回答
  •  执念已碎
    2020-12-31 22:14

    NSMutableAttributedString *str2 = [[NSMutableAttributedString alloc] initWithString:@"bbbb" attributes:@{NSStrikethroughStyleAttributeName:[NSNumber numberWithInteger:NSUnderlineStyleNone]}];
    

    it should help

提交回复
热议问题