首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不让appledoc记录NS_ENUM

不让appledoc记录NS_ENUM
EN

Stack Overflow用户
提问于 2014-03-26 10:07:31
回答 2查看 2K关注 0票数 2

有谁能解释一下,我在记录NS_ENUM时做错了什么?

这是我的语法:

代码语言:javascript
复制
/** The different menu items
 */
typedef NS_ENUM(NSInteger, kMenuItem) {
    /** The start page */
    kMenuItemStartPage = 0,
    /** The new round item */
    kMenuItemNewRound,
    /** The archive item */
    kMenuItemArchive,
    /** The participants item */
    kMenuItemMyParticipants,
    /** The locations item */
    kMenuItemMyLocations,
    /** The settings */
    kMenuItemSettings,
    /** The contact page */
    kMenuItemContact,
    /** The count */
    kMenuItemTotal
};

/**
 * This is the Menu View Controller.
 *
 * The menu view controller handles the menu the menu and its options. You can access the menu view controller using the `menuContainer` in the `ApplicationDelegate`
 *
 */
@interface MenuTVC : UITableViewController


@end

我的运行脚本构建阶段:

代码语言:javascript
复制
APPLEDOC_PATH=`which appledoc`
if [ $APPLEDOC_PATH ]; then
echo "Generating docs!";
$APPLEDOC_PATH \
--project-name "${PRODUCT_NAME}" \
--project-company "Sogeti Sverige AB" \
--company-id "se.domain.project" \
--output "Docs" \
--no-install-docset \
--exit-threshold "2" \
--keep-undocumented-objects \
--keep-undocumented-members \
--keep-intermediate-files \
--ignore "Pods" \
--ignore ".m" \
--index-desc "${PROJECT_DIR}/Readme.md" \
${PROJECT_DIR}/Prevent
else
echo "AppleDoc not found or installed!"
fi;

结果:

并建立成果:

从航站楼:

代码语言:javascript
复制
$ which appledoc
/usr/bin/appledoc
$ appledoc --version
appledoc version: 2.2 (build 963)

我就是搞不懂。

提前感谢!

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-03-26 10:25:13

我刚刚发现枚举被记录在index.html文件中,而不是类文档本身。

确实有用。

票数 1
EN

Stack Overflow用户

发布于 2014-03-26 10:17:34

Appledoc目前不支持枚举。我们可以说,这是一个颇受欢迎的功能请求:

https://github.com/tomaz/appledoc/issues/2

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22657550

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档