Disable UITextField keyboard?

后端 未结 10 2169
不知归路
不知归路 2020-11-27 15:42

I put a numeric keypad in my app for inputing numbers into a text view, but in order to input numbers I have to click on the text view. Once I do so, the regular keyboard co

10条回答
  •  南方客
    南方客 (楼主)
    2020-11-27 16:08

    Depending on how you have your existing buttons working this could break them, but you could prevent the keyboard from showing up setting the textView's editable property to NO

    myTextView.editable = NO
    

提交回复
热议问题