Rock N Code
[iOS]取代NSAttributedString中的部分字串
網路上都是麻煩的方式,後來找到一個最適用的,紀錄如下
How to replace occurrences of a pattern with a NSAttributedString
這個方法可以避免修改到原始的attribute,只純粹把不要的substring弄掉
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言