ios 富文本编辑器

here's no way to set different colours for different works in a UITextView.

There are multiple replacements for a UITextView which support rich text editing (listed bellow). However if you only want to give different text different color's in a UITextView (like syntax highlighting) the easiest thing to do is just use a UITextView itself for the editing with a CoreText overlay displaying the coloured text.

https://github.com/SquaredTiki/EditableCoreTextOverlay

EGOTextView : http://www.cocoacontrols.com/platforms/ios/controls/egotextview
BCTextView : http://www.cocoacontrols.com/platforms/ios/controls/bctextview
JTextView : http://codaset.com/jer/jtextview

http://www.cocoacontrols.com/search?utf8=%E2%9C%93&q=rich+text&commit=Search


就是个备份 不是真正的解决方案


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值