Tap Gesture on part of UILabel

前端 未结 5 1016
[愿得一人]
[愿得一人] 2020-12-10 18:56

I could successfully add tap gestures to a part of UITextView with the following code:

UITextPosition *pos = textView.endOfDocument;// textView ~ UITextView
         


        
5条回答
  •  天命终不由人
    2020-12-10 19:29

    One option would be to use a non-editable UITextView instead of a UILabel. Of course this may or may not be a suitable solution depending on your exact needs.

提交回复
热议问题