NSStrikethroughStyleAttributeName , How to strike out the string in iOS 10.3?

后端 未结 7 1854
长情又很酷
长情又很酷 2020-12-07 01:38

I have used this line of code before release of iOS 10.3 ,and worked fine.

NSMutableAttributedString *attributeString = [[NSMutableAttributedString alloc] in         


        
7条回答
  •  有刺的猬
    2020-12-07 02:22

    Just Use this :-

    NSMutableAttributedString *costPrice = [[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"₹ %@",strDetails]]; [costPrice addAttribute:NSBaselineOffsetAttributeName value:[NSNumber numberWithInteger: NSUnderlineStyleSingle] range:NSMakeRange(0,costPrice.length)];

    This is temp solution . Hope it works

提交回复
热议问题