

























摘自:http://www.cnblogs.com/bomo/p/4815963.html
文档注释,可以在调用时显示注释信息,让调用者更好的理解方法的用途。
注释方法:
下面几种方式都是可以的
@interface testClass : NSObject /// property A is XXXX @property (nonatomic) NSString *propertyA; @property (nonatomic) NSString *propertyB; ///< property B is XXX; /** property C is XXX */ @property (nonatomic) NSString *propertyC; @property (nonatomic) NSString *propertyD; /**< property D is XXX */ /// this is a function ; -(void) testFunA; /** this is a function */ -(void) testFunB; /** * this is a function * param is a string * @param input a string * @return no return */ -(void) testFunC:(NSString *) input; @end @interface ASNavigationController : UINavigationController @end

此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。