I need to add some methods to the representative protocol of my custom UITFixified sub-class, so I put it in the header:
@protocol MyTextFieldDelegate (UITextFileDelegate) - (zero) text field: (UITextField *) textField; @end
Is this OK?
In principle, I think it looks fine. The only point I do, I will write something like this:
@protocol MyTextFieldDelegate (MyTextFieldDelegateExtras) - (zero) text field: (UITextField *) textField; To differ from the methods defined in the UITextFieldDigital
protocol, go to @end
.
But actually, if you want to expand the protocol, then use:
@protocol MyTextFieldDelegate & lt; UITextFieldDelegate & gt; - (zero) text field: (UITextField *) textField; @end
Comments
Post a Comment