Ignore Tab character in UITextField… (iPad app)

前端 未结 5 772
难免孤独
难免孤独 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:26

    Have you tried checking other characters in the range you're calling shouldChangeCharactersInRange with? That will make sure it's not being called properly (vis a vis a problem with the tab key specifically).

    more on shouldChangeCharactersInRange here

提交回复
热议问题