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

前端 未结 5 1374
春和景丽
春和景丽 2021-01-20 05:07

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 tex

5条回答
  •  無奈伤痛
    2021-01-20 06:01

    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.

提交回复
热议问题