Reputation: 51978
So I'm currently making an app that supports both iphone 3gs and ipad (this is a universal binary app).
What I'm wondering is how will iphone 4 users view my app, will they see it pixelated? will they not see it full screen since my iphone 3gs is on a smaller resolution?
I don't have an iphone 4 yet but I'd rather just release this app as is - just for 3gs and ipad. Is there anything that I must know / any precautions etc? Oh (i just thought of this) is there an iphone 4.0 simulator so i can check out if my app works okay?
Thanks!
Upvotes: 3
Views: 240
Reputation: 11143
Yes you can change your device type, by in the simulator pressing: Hardware->Device->iPhone 4 If you don't have it you might want download the latest devevloper tools.
Also you might have to press Window->Scale->100%
Upvotes: 1
Reputation: 3958
Basically any bitmap graphics (PNG files) will look a little blurry on the iPhone 4's Retina display.
The easiest way to fix this is to make double scaled versions (100x100 becomes 200x200) of all your PNG files and add them to your project suffixed with "@2x.png". In other words, MyBitmap.png will become [email protected]. Luckily your code doesn't have to change. On the iPhone 4 the OS will automatically choose a @2x.png instead of the regular one when you do:
UIImage *myBitmap = [UIImage imageNamed:@”MyBitmap.png”];
Xib files will also use the @2x.png if there is one available.
Other than that there's also launch images and Application Icons to worry about. This blog has a good summary.
Upvotes: 1