IOS sets the event on textfile to close the keyboard by tapping return to call the event

From , 3 Years ago, written in Objective-C, viewed 241 times.
URL https://pastebin.vip/view/df334b22
  1. - (void)viewDidLoad
  2. {    myTextField =self.myTextField;
  3.     [self.myTextField addTarget:self action:@selector(backgroundTap:) forControlEvents:UIControlEventEditingDidEndOnExit];
  4. }
  5.  
  6. - (IBAction)backgroundTap:(id)sender {
  7.     [myTextField resignFirstResponder];
  8. }
  9. //objectc/5862

Reply to "IOS sets the event on textfile to close the keyboard by tapping return to call the event"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website