从 Xcode 导出快速模型?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3015341/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Export a Quick Model from Xcode?
提问by Cliff
I was looking for a quick way to generate UML like documentation for my project when I stumbled across the Quick Model menu item in Xcode. I was wondering if there were a way to export these diagrams in a non-platform-specific file format like png or pdf? Basically I want to take some quick visual diagrams (illustrating component relationships) of some of the major classes in our project to management. Does anyone know of an idea?
当我偶然发现 Xcode 中的 Quick Model 菜单项时,我正在寻找一种快速的方法来为我的项目生成类似 UML 的文档。我想知道是否有办法以非平台特定的文件格式(如 png 或 pdf)导出这些图表?基本上我想把我们项目中一些主要类的一些快速可视化图表(说明组件关系)带到管理中。有谁知道一个想法?
回答by cdespinosa
File > Print, and choose Save to PDF from the gear menu in the Print dialog. Works in nearly every Mac OS X app.
文件 > 打印,然后从“打印”对话框的齿轮菜单中选择“保存为 PDF”。适用于几乎所有 Mac OS X 应用程序。
回答by baquiano
@testing GraphicConverter allows you to open PDF's or files saved to iPhoto and then converted to PNG and crop them with precision to then rejoin in a bigger file. It's quite tedious but works. OmniGraffle should have a CoreData importer but it's not in the Standard version.
@testing GraphicConverter 允许您打开 PDF 或保存到 iPhoto 的文件,然后转换为 PNG 并精确裁剪它们,然后重新加入更大的文件。这很乏味,但有效。OmniGraffle 应该有一个 CoreData 导入器,但它不在标准版本中。