UITextView disabling text selection

后端 未结 11 1102
误落风尘
误落风尘 2020-12-08 00:19

I\'m having a hard time getting the UITextView to disable the selecting of the text.

I\'ve tried:

canCancelContentTouches = YES;
         


        
11条回答
  •  感情败类
    2020-12-08 00:52

    It sounds like what you actually want is a giant UILabel inside a UIScrollView, and not a UITextView.

    update: if you are on newer versions of iOS UILabel now has a lines property:

    Multiple lines of text in UILabel

提交回复
热议问题