View Original
Today through their own study to the TextField agent methods are listed, successively call order to do a bit of verification.
To do this, open the interface--click textfield--> input ' abc ' and click ' X ' to clear the button-click on the keyboard ' wrap '-click ' Finish '
Log logs:
4
2
4
1
1
1
5
7
6
3
#pragma Mark-textfield Delegate -(BOOL) TextField: (Uitextfield *) TextField Shouldchangecharactersinrange: ( Nsrange) Range replacementstring: (NSString *) string { NSLog (@ "1");//The input text is always monitored return YES; } -(void) textfielddidbeginediting: (Uitextfield *) TextField { NSLog (@ "2");//Prepare to start the input text field will be the first responder } -(void) textfielddidendediting: (Uitextfield *) TextField { NSLog (@ "3");//call when text is completely finished editing } -(BOOL) textfieldshouldbeginediting: (Uitextfield *) TextField { NSLog (@ "4");//Returns a BOOL value that specifies whether the sequential text field begins editing return YES; } -(BOOL) Textfieldshouldclear: (Uitextfield *) TextField { NSLog (@ "5");//click ' X ' to clear the button to call return YES; -(BOOL) textfieldshouldendediting: (Uitextfield *) TextField { NSLog (@ "6");//returns BOOL value, Specifies whether the text field is allowed to end editing, and when the edit is finished, the text field will yield the first responder return YES; -(BOOL) Textfieldshouldreturn: (Uitextfield *) TextField { NSLog (@ "7");//Click on the keyboard ' wrap ' to invoke return YES;
Above, the collection record under
IOS TextField Proxy method invocation sequencing (RPM)