I need to add some methods to the delegate protocol of my custom UITextField subclass. So I put this in the header:
@protocol MyTextFieldDelegate (UITextFieldDelegate)
- (void)textfieldDidSomething:(UITextField*)textField;
@end
Is this fine?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In principle I think it looks fine. The only point I would make is I would write something like:
to distinguish it from the methods defined in the
UITextFieldDelegateprotocol.But really if you want to extend the protocol, then use: