41

iOS开发技巧·傻瓜式从工程文件导出类关系图(UML)

 5 years ago
source link: http://www.cocoachina.com/ios/20180727/24341.html?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

前言:一些复杂的工程可以通过查看工程的UML图快速分析个各个类之间的关系。当然,网上也有很多其它的方案,不过要么设置麻烦,要么用最新版本Xcode并不支持的插件方案。均不简单。

这里给出一个傻瓜式导出UML图的方案 --- OmniGraffle。

1. 准备

安装OmniGraffle

下载网站 https://www.waitsun.com/?s=OmniGraffle ,选择一个老一点的版本,比如作者用的OmniGraffle6.6。最新的版本对于这个功能好像有Bug,会crash。

2. 步骤

第1步:

左键单击工程目录拖拽至OmniGraffle的图标上。

bMZj2aF.png!web

第2步:

弹出窗口,选择第二个。

第3步:

默认勾选即可,点击确定。

QVZzqqJ.png!web

第4步:

生成UML图。

iq6ZZ3a.png!web

作者:陈满iOS

链接:https://www.jianshu.com/p/955644b10e3c


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK