ios - 如何将复选框列表添加到 UITextView [英] ios - How to add checkbox list to UITextView
本文介绍了ios - 如何将复选框列表添加到 UITextView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在构建一个富文本编辑器,类似于 iPhone 上的 Notes 应用程序,我想知道如何在 UITextView 中添加复选框列表?我认为这可以使用 NSTextAttachment 来完成,但是如何添加点击功能来检查\取消选中图像?
I am building a Rich Text Editor, similar to the Notes app on the iPhone and I wanted to know how can I add a checkbox list inside the UITextView? I assume this can be done using NSTextAttachment but how do I add the tap functionality to check \ uncheck the image?
推荐答案
好的,所以我使用 HPTextViewTapGestureRecognizer 它似乎在处理文本附件的点击操作方面做得很好
Ok so i solved this using HPTextViewTapGestureRecognizer It appears to do a good job handling tap actions for text attachments
这篇关于ios - 如何将复选框列表添加到 UITextView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文