2011-01-16 12 views
0

OKクラスのデリゲートを拡張し、私はそのような何か使用して、クラスの拡張機能を作成する方法を知っている:.hのiPhoneは

@interface UIButton (myExtensionName) 

// my extended methods 

@end 

をし、その後.M上

@implementation UIButton (myExtensionName) 

// my implementations 

@end 

しかし、私が作成できる拡張代理人をどのように宣言しますか?

これは通常のクラスだった場合、私は

@protocol myExtensionName <NSObject> 
// my delegate declarations 
@end 

を行うだろうが、私はクラスの延長線上にそれをどのように行うのですか?

おかげ

答えて