How to use the Photoshop PSD design file in your xCode?

一曲冷凌霜 提交于 2020-02-23 06:50:30

问题


I'm going to creat an iOS app from UI design to implementation, I want to make my app looks better, so i googled a lot and find people saying to create a PSD file with your app views first, so here comes to my question:

1) If i had that PSD file, how do i use it in my app?

2) Is there a general way to use that PSD file for all the elements I created?

Thank you very much.


回答1:


The PSD File contains your photoshop readable source material and cannot be used in your iOS application. You have to export / save your PDF files save a PNG or jpeg to use it.




回答2:


You can export the PSD elements to XCode using a photoshop script. this is easy and simple. All you need to do is follow the steps and it will import the files to your .storyboard file.

PSD to Xcode Script by TampestVision




回答3:


You will need to do some slicing, i.e. divide the interface described in the PSD into smaller PNG images.

You will probably need

  • The designer who made the PSD.
  • Adobe Photoshop.

These are the broad steps that you need to take.

  1. The designer needs to tell you what each element of his design is supposed to do.

  2. As a developer you will need to decide how each element is going into your app (Button, Label, image, table)

  3. Pick out the components you need for each element (outline, fill, shadow, etc)

  4. Choose the corresponding layers,in the PSD, to those components.

  5. save those layers for web(Choose PNG-24, keep transparency)



来源:https://stackoverflow.com/questions/6980048/how-to-use-the-photoshop-psd-design-file-in-your-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!