大佬教程收集整理的这篇文章主要介绍了Objective-C方法描述(doc评论),大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
在耶夫我们有这个
/** < h2 >MethodName</ h2 > < p >VarIoUs Description,can use html with images etc.</ p > */ private void methodName(args[]..) { }
//Within Implementation? - (float)gteHeightPercentage:(float)percentageToGet { return self.view.bounds.size.height * percentageToGet; } //Within Header? - (float)getWidthPercentage:(float)percentageToGet;
XCode 5可以做你想要的感谢Wonil Kim,在.h文件中:
/** * Add new message between source to desTination timeline as empty name String * @author Wonil Kim * * @param sourcEID source timeline entity ID * @param destId DesTination timeline entity ID * @return A newly created message instance */ - (ISmessage*)messageFromTimeline:(NSInteger)sourcEID toTimeline:(NSInteger)destId;
当然,从Kim’s blog可以看出,这不是唯一的办法:
/*! Some description of the method.... * \returns The result */
或者,
/// Some description to show up,done by: /// @author Olly Dixon
你得到了点…
正如许多已经提到的那样,Objective-C不会向您显示您的文档;其实也不是java(javadoc,可能是)。这是你的IDE,在这种情况下,不可崩溃的Xcode
以上是大佬教程为你收集整理的Objective-C方法描述(doc评论)全部内容,希望文章能够帮你解决Objective-C方法描述(doc评论)所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。