在 Xcode 中制作 Storyboard 的 PDF 的方法?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9469840/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 23:27:50  来源:igfitidea点击:

Way to make PDF of a Storyboard in Xcode?

iosxcode

提问by Victor Van Hee

Is there an easy way to make a PDF or image file (png / jpg / jpeg) of a full storyboard in Xcode 4.3 to export and send to someone else or post a question on this forum? I would just make a screenshot, but my storyboard is way too big for my monitor and I'd rather not have to manually paste it back together in an image editing program.

是否有一种简单的方法可以在 Xcode 4.3 中制作完整故事板的 PDF 或图像文件(png/jpg/jpeg)以导出并发送给其他人或在此论坛上发布问题?我只想制作一个屏幕截图,但我的故事板对于我的显示器来说太大了,我宁愿不必手动将其粘贴到图像编辑程序中。

回答by jhilgert00

I'm pretty sure there's no "Export storyboard to PDF" option in xcode, but I know this: Double-clicking on the storyboard file name opens it in it's own window. Then you can go full screen with it, and right click to zoom out to your desired scale.

我很确定 xcode 中没有“将故事板导出为 PDF”选项,但我知道这一点:双击故事板文件名会在它自己的窗口中打开它。然后您可以使用它全屏显示,然后右键单击以缩小到您想要的比例。

enter image description here

在此处输入图片说明

You can then either drag a box to select everything or hit Command + A. Every view including the segues can then be dragged around as on unit.

然后,您可以拖动一个框来选择所有内容,也可以按 Command + A。然后可以像在单元上一样拖动包括 segue 在内的每个视图。

enter image description here

在此处输入图片说明

Other than that, I think your out of luck. And if you need to see all of the details of each view, I would take screenshots either in the simulator or the device itself. Then add your connections in whatever editing software you use to make the mockup storyboard.

除此之外,我认为你不走运。如果您需要查看每个视图的所有详细信息,我会在模拟器或设备本身中截取屏幕截图。然后在您用来制作模型故事板的任何编辑软件中添加您的连接。

A quick Photoshop tip for doing that would be the line tool with automatic arrows at the beginning or end. You just draw a line, and it sticks an arrowhead at the end. done. You can access that option from the little arrow dropdown with the line tool active.

一个快速的 Photoshop 提示是在开始或结束时带有自动箭头的线条工具。您只需画一条线,它就会在末端粘上一个箭头。完毕。您可以在激活线条工具的情况下从小箭头下拉菜单中访问该选项。

enter image description here

在此处输入图片说明

回答by brainray

If you have a Retina Mac, how can switch the Screen to the highest possible resolution (e.g. with SwitchResX 3360*2100) and make a screenshot. This is sufficient for the most smaller Storyboards

如果您有 Retina Mac,如何将屏幕切换到尽可能高的分辨率(例如使用 SwitchResX 3360*2100)并制作屏幕截图。这对于大多数较小的 Storyboard 来说已经足够了

回答by CMash

I'd really like to be able to export a storyboard to PDF too, even though a storyboard isn't great for a wireframe it would be a good starting point for discussions without having to make it all from scratch.

我真的很希望也能够将故事板导出为 PDF,即使故事板对于线框图来说不是很好,但这将是一个很好的讨论起点,而不必从头开始。

The only option I've found that comes close is the fact you can copy a view (view controller and segues etc. unfortunately) and then paste it into Photoshop, Pages etc.

我发现唯一接近的选项是您可以复制视图(不幸的是,视图控制器和 segues 等),然后将其粘贴到 Photoshop、Pages 等中。