views:

42

answers:

2

Hi everyone,

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 textField:shouldChangeCharactersInRange method it's not called

Does anyone knows how to do this? I know that there is no tab key in the iPad keyboard but the blutooth and dock ones do and triggers a really weird behavior.

Thanks

A: 

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

fish2000
Hello.. yes, I am using the delegate to check for specific values sometimes, but when I hit the tab key, the method it not called
Omer
A: 

Check to make sure the delegate for the UITextField is set either in IB or code. Check to make sure your .h file has the UITextFieldDelegate specified

All should work now.

Jordan
Hello... the delegates works with other characters, I am using those to do some other checks
Omer