Ignore Tab character in UITextField… (iPad app)

前端 未结 5 774
难免孤独
难免孤独 2021-01-17 09:39

I have a TableView with TextFields in each cell and I want to those textfields ignore the character tab (\\t).

When the tab key is pressed, the t

5条回答
  •  无人及你
    2021-01-17 10:11

    I think this is possible, but difficult. Basically, I would try to ensure that when the text field becomes the first responder, no other view can become the first responder. Then, pressing tab will do nothing. Then, you would have to reverse this effect when another view that actually could become first responder is selected, or when the text field resigns first responder.

提交回复
热议问题