Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Spontida

macrumors regular
Original poster
Aug 7, 2011
201
4
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.
 

xArtx

macrumors 6502a
Mar 30, 2012
764
1
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.

They have to run on all screen sizes that the apps supports.
 

atmenterprises

macrumors 6502
Jan 28, 2006
389
204
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.
 

xArtx

macrumors 6502a
Mar 30, 2012
764
1
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.
 

ArtOfWarfare

macrumors G3
Nov 26, 2007
9,558
6,058
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.

Are you using Xcode 4 or 5? I'm going to guess 4. You should use 5, it handles this kind of thing better.
 

xArtx

macrumors 6502a
Mar 30, 2012
764
1
Are you using Xcode 4 or 5? I'm going to guess 4. You should use 5, it handles this kind of thing better.

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.
 

xArtx

macrumors 6502a
Mar 30, 2012
764
1
Not sure how that's more future-proof. iOS 7 already requires 120x120 app icons.

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.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.