IOS TextField Proxy method invocation sequencing (RPM)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.