Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable uikeyboard of textview ,if the editing mode enabled

How to hide/disable keyboard ,if the textview editing is enabled.

I only want to that user can only be able to select the text and can't be allowed for entering text.

Because selected text will be converted in to image for move animation.

User will not be allowed for entering any text in textview so that's why keyboard should be hidden or disable ,he will be allowed only for text selection.

like image 916
iosDev Avatar asked Nov 20 '25 03:11

iosDev


1 Answers

uitextview.editable = NO; or set checkmark in IB. It will allow to select text with options - Copy and Select All without keyboard appearing. Tap on the word and hold to select text.

like image 117
beryllium Avatar answered Nov 21 '25 19:11

beryllium



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!