ios 10.3 汉字的中划线
生活随笔
收集整理的這篇文章主要介紹了
ios 10.3 汉字的中划线
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
NSString *str = [NSString stringWithFormat:@"我是漢1233"]; NSMutableAttributedString *attributeMarket = [[NSMutableAttributedString alloc] initWithString:str]; [attributeMarket setAttributes:@{NSStrikethroughStyleAttributeName: @(NSUnderlineStyleSingle), NSBaselineOffsetAttributeName : @(NSUnderlineStyleSingle)} range:NSMakeRange(0,str.length)]; _label.attributedText = attributeMarket;
作者:rockyMJ
鏈接:http://www.jianshu.com/p/db6bc9a861a0
來(lái)源:簡(jiǎn)書(shū)
著作權(quán)歸作者所有。商業(yè)轉(zhuǎn)載請(qǐng)聯(lián)系作者獲得授權(quán),非商業(yè)轉(zhuǎn)載請(qǐng)注明出處。
作者:rockyMJ
鏈接:http://www.jianshu.com/p/db6bc9a861a0
來(lái)源:簡(jiǎn)書(shū)
著作權(quán)歸作者所有。商業(yè)轉(zhuǎn)載請(qǐng)聯(lián)系作者獲得授權(quán),非商業(yè)轉(zhuǎn)載請(qǐng)注明出處。
轉(zhuǎn)載于:https://www.cnblogs.com/lsh1234/p/7410270.html
總結(jié)
以上是生活随笔為你收集整理的ios 10.3 汉字的中划线的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: selenium自动化测试——常见的八种
- 下一篇: [leetcode]687. Longe