How to use the Photoshop PSD design file in your xCode?
I'm going to creat an iOS app fro开发者_运维百科m 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.
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.
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
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.
The designer needs to tell you what each element of his design is supposed to do.
As a developer you will need to decide how each element is going into your app (Button, Label, image, table)
Pick out the components you need for each element (outline, fill, shadow, etc)
Choose the corresponding layers,in the PSD, to those components.
save those layers for web(Choose PNG-24, keep transparency)
精彩评论