Retina and Layouts

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

Hello All,

If I choose to ignore the iPhone's Retina display, can I simply code my app's views to 'traditional' iPhone screen resolution / item positioning and it should display OK on retina capable devices?

Or am I obliged to put in extra code to deal with Retina as well as traditional screen resolutions of the older iPhone displays, so buttons, text fields etc. will be in the correct places on both screen types.

Many thanks,

Steve

1 Answer

I will try and answer your question.

I can understand where your coming from but I think from apples point of view you have to handle all displays on the iPhone. You don't actually have to code differently but you do need to have images which render correctly on both displays. This can be achieved by adding the @2x image versions.

Buttons text fields etc should render ok, I have coded to handle the different screens so I cannot answer if they will render acceptably on all screens. But Titanium uses pixel positioning so the items should render in the same position without adjusting code.

Hope this helps

T.

— answered 1 year ago by Trevor Ward
answer permalink
1 Comment
  • Ah, thanks Trevor - it was the pixel-positioning which had me puzzled but from what you say my x & y coordinates should position UI elements in the same place on both types of iPhone display?

    On reflection that makes sense now I think about it, no matter what the screen resolution 10 pixels across by 10 pixels down is always 10 pixels across by 10 pixels down! :-)

    Thanks again,

    Steve

    — commented 1 year ago by Steve Harman

Your Answer

Think you can help? Login to answer this question!