UITextView disabling text selection

后端 未结 11 1119
误落风尘
误落风尘 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 01:17

    I've found that calling

    [textView setUserInteractionEnabled:NO];
    

    works quite well.

提交回复
热议问题