Sunday, June 3, 2012

iOS: Focus on Text Field and Open Keyboard

This can be done by calling the "becomeFirstResponder" method of the UITextField object.

i.e.
    [titleTextField becomeFirstResponder];

This will make the cursor focus on the text field and also bring up the keyboard (automatic and without user intervention).

No comments:

Post a Comment