5

XCode で headerDoc タグを使用していますが、.m ファイルでプライベート メソッドを文書化できないようです。Apple のサイトから直接サンプル構文を使用します。

@implementation AppDelegate

/*!
 This is an objective-C method.
 @param application
 Parameter A.
 @param launchOptions
 Parameter B.
 @result
 Results in global warming.
 */

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

}

次のエラーが発生します。

Processing compassview/AppDelegate.m
/Users/me/workspace/iOS/myapp/AppDelegate.m:inputCounter: warning: Class braces do not match.
We may have a problem.
/Users/me/workspace/iOS/myapp/AppDelegate.m:194: WARNING: anonymous type.
IC: 181
DC: "end  
"
TL: ""
NL: "end"
PT: ""
/Users/me/workspace/iOS/myapp/AppDelegate.m:194: warning: Unknown keyword  in block-parsed declaration.
This usually means that your code requires C preprocessing in order to be
valid C syntax and either C preprocessing is not enabled (-p) or the required
macros lack HeaderDoc comments.  Use of the @parseOnly tag is recommended
for these special symbols.

@implementation ブロックの外側の headerDoc タグは、このエラーなしで機能します。

4

0 に答える 0