开发者

In Objective-C where is textfielddoneediting originally declared?

开发者 https://www.devze.com 2023-03-18 13:56 出处:网络
I\'ve performed a pretty exhaustive search of the documentation namely: UIViewController, UITextField, and UITextFieldDelegate, but I can\'t figure out where the method \"textFieldDoneEditing\" is ori

I've performed a pretty exhaustive search of the documentation namely: UIViewController, UITextField, and UITextFieldDelegate, but I can't figure out where the method "textFieldDoneEditing" is originally declared.

I know that I have to use it in my ViewController to get the keypad to disappear in this manner:

开发者_如何学C- (IBAction)textFieldDoneEditing:(id)sender
{
    [sender resignFirstResponder];
}

But is method part of a protocol that is inherently implemented by UIViewController?

Thanks


Without seeing the other code, I suspect this was connected to the textfield via interface builder connecting to the Editing Did End event. There is no textFieldDoneEditing method in any of UITextField parent classes.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号