App Dev Images

Discussion in 'iOS Programming' started by oo7ml, Jun 23, 2014.

  1. oo7ml macrumors 6502

    Joined:
    Jan 20, 2010
    #1
    Hi,

    What size images should we use when developing an app.

    When developing websites, i usually make all UI images x2 so that they display clear on retina devices.

    Should i do the same for app development or should they just be their standard size?

    For example, if i am using an image of a cog for my settings button, should it be 88px or 176px

    Thanks in advance for your help.
     
  2. Ubuntu macrumors 68000

    Ubuntu

    Joined:
    Jul 3, 2005
    Location:
    UK/US
    #2
    It's pretty much the same. You should make two versions of image, one at the retina resolution (with a filename format like "filename@2x.png" if it's a png) and the other will be the normal file name ("filename.png").

    Then you just add both to the project and make your references to filename.png - depending on the device the respective image will be used.
     
  3. Kryckter macrumors 6502

    Kryckter

    Joined:
    Mar 12, 2009
    #3
    You should always do both, even though non retina devices would be getting pretty old and not able to run the latest OS.

    Regardless, for now use both, either through 2 PNG files or adding them to the assets
     
  4. oo7ml thread starter macrumors 6502

    Joined:
    Jan 20, 2010
    #4
    Ok cool, so does iOS / xcode just pickup the retina when we name them as retina or do we need to reference also?
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    iOS uses the retina image when possible, as Ubuntu already stated:
     
  6. oo7ml thread starter macrumors 6502

    Joined:
    Jan 20, 2010
    #6
    Ok great, I was really asking if there is any setting or a line of code required in order to get iOS to pick up the retina
     
  7. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #7
    As long as you name the images as Ubuntu stated, you shouldn't need to do anything else.
     
  8. oo7ml thread starter macrumors 6502

    Joined:
    Jan 20, 2010
    #8
    Great thanks for confirming, much appreciated
     
  9. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #9
  10. oo7ml thread starter macrumors 6502

    Joined:
    Jan 20, 2010

Share This Page