views:

66

answers:

1

My user enter a text in a UITextField then press a UIBarButtonItem to confirm.

If there's a autocorrection suggestion when the user tap the UIBarButtonItem, it is not accepted. How do I accept it programmatically?

+2  A: 

Try calling:

[textfield resignFirstResponder];

on your textfield, when the user hits your button.

mahboudz
Thanks, that worked. :)
gcamp