Create class diagram from already existent iphone code

纵然是瞬间 提交于 2019-12-04 07:50:36

问题


does anybody know, how i could create automatically a UML class diagram from an already existent iphone project. Is it possible?

Thanks in advance.


回答1:


Yes, you can use Doxygen:

  1. Install Doxygen (with MacPorts: sudo port install doxygen).

  2. Get a script like this and change the first lines to match your configuration.

  3. Download these files and edit the Doxygen file so it says HAVE_DOT=YES and UML_LOOK=YES.

It will then generate and install a docset that you can read from the documentation browser, or just right click and show contents from Finder.


Or, if you want a graph of dependencies check: https://github.com/nst/objc_dep It uses graphviz.




回答2:


See also OmniGraffle of all things. If you open an Xcode project with it, it will generate a full class diagram. It can be fairly overwhelming for a large project.



来源:https://stackoverflow.com/questions/2424362/create-class-diagram-from-already-existent-iphone-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!