2013-09-25 5 views

답변

0

프로토콜을 별도의 헤더 파일에 정의 할 필요가 없습니다. 나는이 (같은 헤더 파일)과 같은 건설에 자신을 사용하고 있습니다 :

에서 MyClass.h

/** The `MyClassDelegate` will notify the controller about anything that happens inside `MyClass` 
*/ 
@protocol MyClassDelegate <NSObject> 
//Protocol definition 
@end 


/** This class has some cool methods and properties 
*/ 
@interface MyClass : NSObject 
//Class definition 
@end