BTUIKTextFieldEditDelegate
Objective-C
@protocol BTUIKTextFieldEditDelegate <NSObject>
Swift
protocol BTUIKTextFieldEditDelegate : NSObjectProtocol
A protocol for receiving callbacks when a user edits text in a BTUITextField
-
The editDelegate receives this message when the user deletes a character, but before the deletion is applied to the
textDeclaration
Objective-C
- (void)textFieldWillDeleteBackward:(BTUIKTextField *)textField;Swift
optional func textFieldWillDeleteBackward(_ textField: BTUIKTextField!)Parameters
textFieldThe text field
-
The editDelegate receives this message after the user deletes a character
Declaration
Objective-C
- (void)textFieldDidDeleteBackward:(BTUIKTextField *)textField originalText:(NSString *)originalText;Swift
optional func textFieldDidDeleteBackward(_ textField: BTUIKTextField!, originalText: String!)Parameters
textFieldThe text field
originalTextThe
textof the text field before applying the deletion -
The editDelegate receives this message when the user enters text, but before the text is inserted
Declaration
Objective-C
- (void)textField:(BTUIKTextField *)textField willInsertText:(NSString *)text;Swift
optional func textField(_ textField: BTUIKTextField!, willInsertText text: String!)Parameters
textFieldThe text field
textThe text that will be inserted
-
The editDelegate receives this message after the user enters text
Declaration
Objective-C
- (void)textField:(BTUIKTextField *)textField didInsertText:(NSString *)text;Swift
optional func textField(_ textField: BTUIKTextField!, didInsertText text: String!)Parameters
textFieldThe text field
textThe text that was inserted
View on GitHub
BTUIKTextFieldEditDelegate Protocol Reference