tags:

views:

38

answers:

1

Hi guys,

I'd like to respond to a touch on the return button of the virtual keyboard. Maybe I'm missing something obvious but it looks like I should set a notification for "textFieldShouldReturn:" and have that call some return key handler. Is this the easiest way to do this?

Thanks!

+1  A: 

Umm... kinda.

Look at the text field's delegate section of Apple's "Your First iPhone Application" doc.

bpapa
Okay, not sure how I missed this. Looks like the delegate can respond to a "textFieldShouldReturn:" method. Thanks!
Hua-Ying