Instance Method

textFieldDidBeginEditing:

Tells the delegate that editing began in the specified text field.

Declaration

- (void)textFieldDidBeginEditing:(UITextField *)textField;

Parameters

textField

The text field in which an editing session began.

Discussion

This method notifies the delegate that the specified text field just became the first responder. Use this method to update state information or perform other tasks. For example, you might use this method to show overlay views that are visible only while editing.

Implementation of this method by the delegate is optional.

See Also

Managing Editing

- textFieldShouldBeginEditing:

Asks the delegate if editing should begin in the specified text field.

- textFieldShouldEndEditing:

Asks the delegate if editing should stop in the specified text field.

- textFieldDidEndEditing:reason:

Tells the delegate that editing stopped for the specified text field.

- textFieldDidEndEditing:

Tells the delegate that editing stopped for the specified text field.

UITextFieldDidEndEditingReason

Constants indicating the reason why editing ended in a text field.