简体   繁体   中英

UItextview selected text not getting deselect when user tap in ios 11

I am unable to deselect the selected text in a UITextview (objective c) in ios 11, I have tested in ios 10 and it is working fine. As per my situation when user tap on text view the text get selected(it is working), but when he tries to edit the text and tap on text to deselect at that time it is not getting deselect(only in ios 11),

can anyone help me out?

set textview selectedTextRange property to nil

self.textView.selectedTextRange = nil;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM