Question about Apple's app rules

Discussion in 'iOS Programming' started by Spontida, Sep 14, 2013.

  1. Spontida macrumors regular

    Aug 7, 2011
    Apple made it so that new/updated apps have to be optimized for the iPhone 5, my question is that do these new apps have to be made for the 4s screen etc.
  2. xArtx macrumors 6502a

    Mar 30, 2012
    They have to run on all screen sizes that the apps supports.
  3. atmenterprises macrumors 6502

    Jan 28, 2006
    Technically you could support three different iPhone resolutions: 320 x 480, 640 x 960 and 640 x 1136. If you make your app universal you would need to support the various iPad resolutions as well.
  4. xArtx macrumors 6502a

    Mar 30, 2012
    I discovered today that if you load "Icon.png" into a UIImage,
    you end up having loaded the icon file that the device is currently using,
    so if the 114x114 icon was loaded, it's a retina display.
    Silly, but should be more future proof than looking for models.
    It probably would work with Default.png as well to identify the screen size,
    and again, not the done thing, but appears to work.
  5. ArtOfWarfare macrumors G3


    Nov 26, 2007
    Are you using Xcode 4 or 5? I'm going to guess 4. You should use 5, it handles this kind of thing better.
  6. xArtx macrumors 6502a

    Mar 30, 2012
    It is a version 4.
    I updated the icon for an app today, but only the Icon@2x.png 114x114 version
    because the app requires GPS, and only runs on Retina devices.
    The smaller version Icon.png, is actually used in the program as an icon,
    but it was actually the 114x114 image being loaded the whole time,
    which I obviously didn't find out until the two images were different.
  7. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    Not sure how that's more future-proof. iOS 7 already requires 120x120 app icons.
  8. xArtx, Sep 15, 2013
    Last edited: Sep 15, 2013

    xArtx macrumors 6502a

    Mar 30, 2012
    Because there were two new iPhone models (I think) while they were 114x114,
    and there will be more when its 120x120.
    So if you were looking at models to tell if the device was Retina,
    you would have had to update the app more often.

    I would avoid it for reasons others might not.
    I don't like the idea of allocating and deallocating memory for nothing,
    even though apps do it all the time.

    In practical terms though, it looks like you could support Retina resolution
    for the next iPad mini right now, without first knowing if the next iPad mini will have a Retina display.

Share This Page