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

前端 未结 5 1338
春和景丽
春和景丽 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:06

    This will make the keyboard disappear:

    [[[UIApplication sharedApplication] keyWindow] endEditing:YES];
    

    This what you want to do?

提交回复
热议问题