I'm making a weeapp for notification center using iOSOpenDev. I have a UITextField
on a UIView
and have implemented the UITextFieldDelegate
protocol.
My problem is that the textFieldShouldClear
method never gets called on clicking the clear button in the UITextField. Other interface methods such as shouldChangeCharactersInRange and textFieldShouldReturn are called without issue.
Any ideas why the interface method never gets called?
Make sure that the textfield's delegate is self:
theTextField.delegate = self;
I have heard that UIActionSheet sucks up the UITextFieldDelegate protocol, and the notification center might do the same...