【问题标题】:how can open a photoshop PSD file in xcode iphone application如何在 xcode iphone 应用程序中打开 Photoshop PSD 文件
【发布时间】:2011-12-26 21:50:45
【问题描述】:

我正在尝试开发一个 ios 应用程序。该应用程序需要打开一个 photoshope psd 文件。有什么方法可以解决这个问题。 如果有人知道请帮助我。提前致谢。

【问题讨论】:

  • 请稍微澄清一下您的问题:您是否想要获取 .psd 文件中的图形以在您的用户界面中将它们显示为元素(按钮、图像等),或者您真的想要能够直接编辑 .psd 文件?
  • 是的,我希望能够直接编辑 .psd 文件

标签: iphone xcode4 ios4


【解决方案1】:

您可以使用ImageMagick。他们有一个 iOS 编译的二进制文件,您可以在应用程序中链接到该二进制文件。

编辑:考虑到this,我建议不要自己编写解析器:

    // At this point, I'd like to take a moment to speak to you about the Adobe PSD format.
    // PSD is not a good format. PSD is not even a bad format. Calling it such would be an
    // insult to other bad formats, such as PCX or JPEG. No, PSD is an abysmal format. Having
    // worked on this code for several weeks now, my hate for PSD has grown to a raging fire
    // that burns with the fierce passion of a million suns.

【讨论】:

  • 这是我见过的最好的内联代码 cmets 之一(嗯,至少今年到目前为止)。
猜你喜欢
  • 2012-12-13
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-07-26
  • 1970-01-01
  • 1970-01-01
  • 2012-02-25
相关资源
最近更新 更多