views:

254

answers:

1

How do you catch the "Enter" key event on a UITextFIeld on the iPad?

+3  A: 

Implement the -textFieldShouldReturn: delegate method, declared in the UITextFieldDelegate protocol. To make an object the delegate of the text field, set the field's delegate property to that object.

Noah Witherspoon
Good discussion with sample code here: http://forums.macrumors.com/showthread.php?t=462104
MikeN