ios - How to add checkbox list to UITextView

流过昼夜 提交于 2020-01-02 11:00:13

问题


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?


回答1:


Ok so i solved this using HPTextViewTapGestureRecognizer It appears to do a good job handling tap actions for text attachments



来源:https://stackoverflow.com/questions/36297812/ios-how-to-add-checkbox-list-to-uitextview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!