What to name the images for iPhone5??

Discussion in 'iOS Programming' started by nichlaspro, Feb 17, 2015.

  1. nichlaspro macrumors member

    Joined:
    Jan 21, 2015
    #1
    Hi ALL!

    In xcode, you are using "@2x" and "@2x~ipad" and ofc the name with that prefix thing..

    BUT what shall you put at the end for iPhone5 images!???

    Or do u even have to create another image with another size for iPhone5???

    THANKS, I really appreciate help!

    Best,

    Nichlas
     
  2. kage207 macrumors 6502a

    Joined:
    Jul 23, 2008
    #2
    You don't have to. You can use PDFs that are vector based but the images can get really big. I prefer having different sizes for the devices I target. Naming scheme should help you know which device the image is for within seconds. If not, it's wrong.
     
  3. nichlaspro thread starter macrumors member

    Joined:
    Jan 21, 2015
    #3
    BUUTTT, Xcode can see which image they have to assign...

    Like:

    I got two images: "image1" and "image1~ipad". Then xcode can see which image it will have to use, so i'm on an ipad, xcode will use the "image1~ipad".

    Therefore I can't really understand why I can't find any prefix thing for iPhone5, which got another resolution compared to iPhone4....???

    BUT THANKS!!!<3
     
  4. kage207 macrumors 6502a

    Joined:
    Jul 23, 2008
    #4
    Oh yea. My bad. @2x is for iPhone 5 too.

    https://developer.appcelerator.com/question/146969/image-name-extension-for-iphone-5
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    Are you talking about app-icons/launch-images or UIImage?
     
  6. nichlaspro thread starter macrumors member

    Joined:
    Jan 21, 2015
    #6
  7. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #7
    Are these background images? If not, no need for "-568h". Unless the images are 568pts in height. Then it doesn't hurt.
     
  8. nichlaspro thread starter macrumors member

    Joined:
    Jan 21, 2015
    #8
    OK, so I won't use that extension in this scenario...

    Thanks for all once again!
     
  9. kage207 macrumors 6502a

    Joined:
    Jul 23, 2008
    #9
    Yup yup. You don't need the height but is helpful if you are making it the main view, ie the only thing the user is looking at. ~@2x gives the UIIamges for 4, 4s, 5, 5s, and 6.
     

Share This Page