Normal workflow is exactly as you described. You can write a Photoshop script to do the layer exporting and Apple provides an Automator tool that will allow you to resize those graphics from 2x down 50%. Great tutorial here. This can help get your graphics to scale quickly.
There are solutions to automate what your trying to accomplish. This video tutorial allows you to take your PSD or PNG and port it into an Xcode with all of the layers properly placed in a view for you, create view controllers, and segues.
Disclaimer - I am associated with the JUMPSTART Platform as mentioned in the video.
You can script Photoshop with Javascript and I've written scripts in the past to perform similar series of steps, it wasn't too hard to figure out even for someone like me who'd never written any Javascript before. Photoshop also has 'Actions' which are like macros and you can probably do something simple like this with Actions as well but it's not something I've personally tried. Check out the Adobe docs on scripting Photshop: Adobe Photoshop Scripting.
发布评论
评论(2)
正常工作流程与您所描述的完全一样。您可以编写 Photoshop 脚本来进行图层导出,Apple 提供了一个 Automator 工具,可让您将这些图形的大小从 2 倍调整到 50%。 这里有很棒的教程。这可以帮助您的图形快速缩放。
有一些解决方案可以自动化您想要完成的任务。通过此视频教程,您可以将 PSD 或 PNG 移植到 Xcode 中将所有图层正确放置在视图中,创建视图控制器,然后继续。
免责声明 - 正如视频中提到的,我与 JUMPSTART 平台相关。
Normal workflow is exactly as you described. You can write a Photoshop script to do the layer exporting and Apple provides an Automator tool that will allow you to resize those graphics from 2x down 50%. Great tutorial here. This can help get your graphics to scale quickly.
There are solutions to automate what your trying to accomplish. This video tutorial allows you to take your PSD or PNG and port it into an Xcode with all of the layers properly placed in a view for you, create view controllers, and segues.
Disclaimer - I am associated with the JUMPSTART Platform as mentioned in the video.
您可以使用 Javascript 编写 Photoshop 脚本,我过去曾编写过脚本来执行类似的一系列步骤,即使对于像我这样以前从未编写过任何 Javascript 的人来说,也不难理解。 Photoshop 也有类似宏的“动作”,您也可以使用动作做一些简单的事情,但这不是我个人尝试过的。查看有关 Photoshop 脚本的 Adobe 文档:Adobe Photoshop 脚本。
You can script Photoshop with Javascript and I've written scripts in the past to perform similar series of steps, it wasn't too hard to figure out even for someone like me who'd never written any Javascript before. Photoshop also has 'Actions' which are like macros and you can probably do something simple like this with Actions as well but it's not something I've personally tried. Check out the Adobe docs on scripting Photshop: Adobe Photoshop Scripting.