摘自:http://www.cnblogs.com/bomo/p/4815963.htmlhtml
文档注释,能够在调用时显示注释信息,让调用者更好的理解方法的用途。this
注释方法:atom
下面几种方式都是能够的spa
@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