How to Prepare Design Assets (UI) for iPhone Development

-

4 minute read

Abstract

I argue that the best results come when a developer and a UI designer work side by side. When a company uses its own design team instead, these are the deliverables I need for iPhone development. Every pressable element needs at least two states. Files follow strict names, with the @2x suffix for the retina display. Design for the larger screen first, then scale down and keep the edges crisp. Keep text out of graphics, and send guidelines for fonts, colors and spacing, zipped and dated.

From our experience, the ideal scenario is when the developer and the UI/UX designer work hand in hand.

Meanwhile, since many companies have their in-house design teams, and either want to save on design or feel more comfortable working with their team, here are the requirements for the deliverables.

1. Press-able elements should have at least 2 states

Regular and pressed. The optional 3rd is in focus, used mostly for listings, or when an element has an on/off state.

For example, in camera apps, flash on and flash off is different from the pressed state, which the user sees only for a millisecond, on the actual press.

2. Name the files properly

a. According to screen size: the naming should be identical; for the retina display, @2x is added to the name. Every single element needs to be prepared for both screen sizes:

btn_item@2x.png
btn_item.png

b. For every different state of the same element:

btn_item.png
btn_item_pressed.png
btn_item_on.png
btn_item_off.png

c. Add the screen title to the file name, unless the asset is being reused throughout the application.

btn_homescreen_item.png
btn_settings_item.png

3. Always design for the bigger screen

The latest generations of the iPhone come with a 640x960 px, 326 dpi retina display. The previous generation has a screen of 320x480 px, 163 dpi (notice, exactly 50% smaller).

So let’s go through the process of preparing the Close button from this screen:

a) Make sure to have both states, regular and pressed:

b) Select all the layers pertaining to the element you are saving, right click, and Convert to Smart Object.

c) Right click on the new Smart Object and export it.

d) Open the exported file and select the layer with the element you want to save.

  • hide the layer effects in order to check the margins
  • use the Direct Selection Tool to select the shape points
  • move every side in any direction you consider appropriate; in my case I moved the 4 points shown in pic. B below to the right
  • compare the right margin in pic. A and pic. B; you should see the difference in crispness

f) When you are happy with the margins, bring back the layer effects and go to File > Save for Web & Devices. In file format choose PNG-24, which preserves transparency and is optimized. Hit save, choose your location, and name it properly, in our case btn_close@2x.png:

g) Now we need to save the same button for smaller screens. Go to Image > Image Size, choose resolution 163 instead of 326, and press OK. Repeat steps d and f, and skip the @2x suffix in the naming.

h) Repeat steps d to g for the pressed state of the element, if present.

Attention: all the files should be in the same folder.

Avoid using text on the graphics, unless you have very good design reasons to do so (e.g. impossible to replicate programmatically and important for the design style). Do not use text on reusable graphics where the text copy may differ from screen to screen.

4. Prepare guidelines

Prepare guidelines for the developers, with instructions on file usage, fonts, colors, and spacing.

Attention: if you provide general guidelines throughout the app, like text colors and general use of text, you do not have to be as detailed as in the example above on every screen.

Guidelines should be provided for every screen of the app. If you decide to skip this step, you cannot expect an exact implementation of your designs.

5. Zip the assets

Zip the assets folder together with the guidelines in PDF format and the layered PSD file of the screen with appropriate naming (optional). Append the date (MMDDYY) to the archive filename, and send.

6. Be consistent in file naming

If there are changes to the UI, name the files exactly as the ones to be replaced. Add the new date to the zip and send.