Update iPhone App Elements to Iphone 5 Screen Size

You must Login before you can answer or comment on any questions.

Hiya

I've been asked by my client to update an app i created 3-4 months ago for the new iPhone 5 screen/display size.

Having looked around the Q&A's i can see that I need to add the Default-568h@2x.png splash screen and that should 'do the rest'.

My concern is that in my existing app code i have as an example:

top nav bar set at width:320, height:60, top:0
bottom nav bar at width:320, height:80, bottom:0
 
main area at width:320, height:340, top:60 // contains images sized at 320x240
With the new screen size height of 568 (rather than 480 which the app is set at now) - will my main area adapt automatically despite me setting the height at 340 or should this be removed? Also as mentioned above i have many images in my resources folder that are 320x340 to fit inside the main area - do i need to create another set of images just for the new iphone 5 size and how do i reference them?

I am just updating XCode now so it includes the 6.0 SDK etc on my very slow internet (it's going to take around 2-3 hours) so apologies if once installed it does work correctly, just i cannot see or tell as yet

Lauren :)

2 Answers

You can test the designs against an iPhone 5 format in the 4.5 simulator. I would recommend removing the forced height, simply set the top: and then set height to :Ti.UI.FILL

— answered 7 months ago by Stephen Feather
answer permalink
1 Comment
  • And, as a bit of empathy (yes, I have some), I hate downloading xCode then needing to go in and download the other simulators after that. Good luck.

    — commented 7 months ago by Stephen Feather

What you really need to be doing is setting you position and with using '100dp', instead of 100 (as an integer). Then it will scale.

— answered 7 months ago by Josh Lewis
answer permalink
1 Comment
  • dp is the default unit on iOS, so unless you specifically change this, 100 and "100dp" should yield the same results.

    — commented 4 months ago by Luke Bartolomeo

Your Answer

Think you can help? Login to answer this question!