swift textview中字体高亮 2020-06-09 本文已影响0人 松龄学编程 textViewDidChange中,对text进行 高亮处理,转成attributedText,再赋值给 textView.attributedText