UITextField valueDidChange-Event

Posted by Infinite on Stack Overflow See other posts from Stack Overflow or by Infinite
Published on 2010-04-04T14:33:51Z Indexed on 2010/04/04 14:53 UTC
Read the original article Hit count: 818

Is there a way to catch a "valueDidChange"-Event for a Textfield? oO

I've got a modalView with an UITextField.

When the UITextField is empty, the "Done"-Button in the NavigationBar should be disabled and when there is Text entered, it should become enabled.

Right now the only way to accomplish this by using the "textFieldShouldReturn"-Method. This works but is simply horrible for usability.

Isn't there a way to check the requirements every time a letter is being entered or removed?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitextfield