Package apple.uikit.protocol
Interface UITextFieldDelegate
-
- All Known Subinterfaces:
UISearchTextFieldDelegate
public interface UITextFieldDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidtextFieldDidBeginEditing(UITextField textField)became first responderdefault voidtextFieldDidChangeSelection(UITextField textField)default voidtextFieldDidEndEditing(UITextField textField)may be called if forced even if shouldEndEditing returns NO (e.g. view removed from window) or endEditing:YES calleddefault voidtextFieldDidEndEditingReason(UITextField textField, long reason)if implemented, called in place of textFieldDidEndEditing:default booleantextFieldShouldBeginEditing(UITextField textField)return NO to disallow editing.default booleantextFieldShouldChangeCharactersInRangeReplacementString(UITextField textField, NSRange range, java.lang.String string)return NO to not change textdefault booleantextFieldShouldClear(UITextField textField)called when clear button pressed. return NO to ignore (no notifications)default booleantextFieldShouldEndEditing(UITextField textField)return YES to allow editing to stop and to resign first responder status.default booleantextFieldShouldReturn(UITextField textField)called when 'return' key pressed. return NO to ignore.
-
-
-
Method Detail
-
textFieldShouldChangeCharactersInRangeReplacementString
default boolean textFieldShouldChangeCharactersInRangeReplacementString(UITextField textField, NSRange range, java.lang.String string)
return NO to not change text
-
textFieldDidBeginEditing
default void textFieldDidBeginEditing(UITextField textField)
became first responder
-
textFieldDidEndEditing
default void textFieldDidEndEditing(UITextField textField)
may be called if forced even if shouldEndEditing returns NO (e.g. view removed from window) or endEditing:YES called
-
textFieldDidEndEditingReason
default void textFieldDidEndEditingReason(UITextField textField, long reason)
if implemented, called in place of textFieldDidEndEditing:
-
textFieldShouldBeginEditing
default boolean textFieldShouldBeginEditing(UITextField textField)
return NO to disallow editing.
-
textFieldShouldClear
default boolean textFieldShouldClear(UITextField textField)
called when clear button pressed. return NO to ignore (no notifications)
-
textFieldShouldEndEditing
default boolean textFieldShouldEndEditing(UITextField textField)
return YES to allow editing to stop and to resign first responder status. NO to disallow the editing session to end
-
textFieldShouldReturn
default boolean textFieldShouldReturn(UITextField textField)
called when 'return' key pressed. return NO to ignore.
-
textFieldDidChangeSelection
default void textFieldDidChangeSelection(UITextField textField)
-
-