2014-05-14 16 views
0

我想记录我的头文件,我真的很喜欢alt +单击文档助手的概念。 使用下面的代码我可以设置关键字如@param@return@see但不幸的是@availability没有正确显示。@availability关键字不工作在Xcode“alt + click”文档帮手

/** 
* Super method for super feature 
* 
* @param someParameter super cool method parameter 
* 
* @availability Version 3.0 (and later) 
* 
* @return void 
*/ 

availability problem

的问题是:如何设置可用性参数文档帮手?

+0

您是否清洁并重新构建? – Raptor

+0

这里有问题吗? –

+0

清洁和重新构建不起作用。 @GuyKogus:编辑:) – lvp

回答

2

您正在寻找@since,而不是@availability

有关命令的完整列表,请参阅this question

0

你需要用户NS_AVAILABLE_IOS(5_0)来显示可用性。
以下是一个示例:

/** 
Check whether a file at a given URL has a newer timestamp than a given file. 
Example usage: 
@code 
NSURL *url1, *url2; 
BOOL isNewer = [FileUtils 
isThisFileNewerThanThatFile:url1 thatURL:url2]; 
@endcode 
@param index 
The index 
@return the results 
*/ 
- (UIImage*)imageForSectionIndex:(NSUInteger)index NS_AVAILABLE_IOS(6_0){ 
    // your implem 
}