1
我已經定義了一個Objective-C @class,它在@interface前面的頭中定義了一個@protocol inline。如何使用appledoc記錄嵌入式協議
我無法獲得appledoc來生成該協議的文檔。它可能是內聯的還是協議需要成爲一個單獨的文件?
我已經定義了一個Objective-C @class,它在@interface前面的頭中定義了一個@protocol inline。如何使用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