私は現在、Objective-C を学んでおり、メソッドの説明の書き方を知る必要があります。Objective-Cでこれを行う方法を学ぶのは非常に困難です。
Javeにはこれがあります
/**
< h2 >MethodName</ h2 >
< p >Various Description, can use html with images etc.</ p >
*/
private void methodName(args[]..)
{
}
Objective-C では、説明をどこに配置すればよいですか? また、これはヘッダー ファイルまたは実装ファイルにありますか?
//Within Implementation?
- (float)gteHeightPercentage:(float)percentageToGet
{
return self.view.bounds.size.height * percentageToGet;
}
//Within Header?
- (float)getWidthPercentage:(float)percentageToGet;