3

i am searching for a way to parse a psd-layout to a nib-file or something like this. I want, that the designer builds a layout and slices this into the different elements. The result should be a ready-to-use XIB-File. ;-)

Are there any ideas how to realize this?

Thanks

Vivid
  • 399
  • 1
  • 8
  • 19

4 Answers4

1

You can ask your designer to name the difference slices using a specific nomenclature.

A possibility:

specific_name-class-x-y-width-height

e.g.

LoginButton-UIButton-60-200-120-40

Then a script parsing each file of your export folder will create your xib file which is nothing more than a XML file.

a simple way to do that could be using psd.js

But I think that it will be much simpler to teach your designer how to use Interface Builder ;)

teriiehina
  • 4,741
  • 3
  • 41
  • 63
0

I've heard about snippets (.jsx = javaScript??) which you can use for Photoshop. These scripts could export your images/layer/slices and change the name to their relative position. Maybe this information could be helpful for anybody.

Vivid
  • 399
  • 1
  • 8
  • 19
0

This tutorial explains exactly how to automatically port a Photoshop PSD or Fireworks Layered PNG into an Xcode storyboard. With all your elements placed for you. http://www.youtube.com/watch?v=hB5PJgIrUko&sns=em

Rob
  • 11,185
  • 10
  • 36
  • 54
0

write your own photoshop script:

http://www.adobe.com/devnet/photoshop/scripting.html

or, use this service:

http://www.psdtoxib.com/

Bobo Shone
  • 721
  • 6
  • 16