How to decorate Objective C methods with documentation?

前端 未结 1 1610
北海茫月
北海茫月 2021-01-12 23:22

When I\'m typing up a Cocoa object and calling a selector on that object, I sometimes can see \'documentation\' or \'help\' information about that method. For instance, as

相关标签:
1条回答
  • 2021-01-12 23:46

    You have to create a “docset”. There are tools like appledoc for creating docsets from your comments. You could set up a build phase that runs appledoc on your code.

    The problem is that there's no way to make Xcode 4 reload a docset except by restarting Xcode. So even if you run appledoc automatically as part of your build, you will have to restart Xcode to make it see the changes to your docset.

    0 讨论(0)
提交回复
热议问题