1
@interface 앞에 헤더에서 @protocol 인라인을 정의하는 Objective-C @class를 정의했습니다.appledoc을 사용하여 인라인 프로토콜을 문서화하는 방법
appledoc에서 프로토콜의 문서를 생성 할 수 없습니다. 인라인이 가능하거나 프로토콜이 별도의 파일이어야합니까?
@interface 앞에 헤더에서 @protocol 인라인을 정의하는 Objective-C @class를 정의했습니다.appledoc을 사용하여 인라인 프로토콜을 문서화하는 방법
appledoc에서 프로토콜의 문서를 생성 할 수 없습니다. 인라인이 가능하거나 프로토콜이 별도의 파일이어야합니까?
프로토콜을 별도의 헤더 파일에 정의 할 필요가 없습니다. 나는이 (같은 헤더 파일)과 같은 건설에 자신을 사용하고 있습니다 :
에서 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