iPhone - extending a class delegate
Posted
by
Digital Robot
on Stack Overflow
See other posts from Stack Overflow
or by Digital Robot
Published on 2011-01-16T11:49:15Z
Indexed on
2011/01/16
11:53 UTC
Read the original article
Hit count: 220
OK, I know how to create a class extension, using something like that:
on .h
@interface UIButton (myExtensionName)
// my extended methods
@end
and then on .m
@implementation UIButton (myExtensionName)
// my implementations
@end
But how do I declare the extended delegates I may create?
If this was a normal class I would do
@protocol myExtensionName <NSObject>
// my delegate declarations
@end
but how do I do that on a class extension?
thanks
© Stack Overflow or respective owner