Quote:
Originally Posted by coxaqui
You should post your code. The instructions above do not work for me. When does the textfield then know to resign the keyboard? Also, the above done method is returning a BOOL when it should be returning void no?
|
1. The done method does not need to return *anything*. Just delete 'return YES'.
2. In order to make this work, via IB, you must set the 'Received Actions' for the First Responder:
a) Select First Responder
b) View Connections Inspector
c) Drag FROM the 'pressDoneKey' Connection (radio button) to the actual TextField.
d) Select 'Did End On Exit' (in the pop-up list of actions)
Save. That's it. It worked for me.
HTH
P.S. BTW, thanks for posting this sequence. Very helpful and appreciated.