Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

iPhone4 - RD and impact on screen design

Hi there, watching the info from Apple about the iPhone4 and it indicated that the resolution was effectively going to double. Although it sounded like the OS would handle this extra resolution(?).

That could mean we'd all have to cater for two screen resolutions when creating screen objects (i.e. when setting top, left, height and width).

for example, whether Left:10, Top:4, Width:50, Height:25
would have to be set to: Left:20, Top:8, Width:100, Height:50 for the iPhone4.

However, Stevie-Baby seemed to suggest the extra resolution would be used 'if available' - suggesting perhaps that a 64 by 64 image could be placed in a 32 by 32 imageView and the iPhone4 would use the extra resolution provided. Would be easiest, but sounds a bit nonsensical.

cheers,
Chris.

— asked June 23rd 2010 by Chris Reed
  • design
  • iphone
  • iphone4
  • resolution
0 Comments

5 Answers

  • Can someone from appcelerator confirm if this naming format will be supported by Ti?

    — answered June 26th 2010 by Nick The Geek
    permalink
    0 Comments
  • it seems as if you add '@x2' to the name of your iOS4-image, iOS4 automaticaly uses this pic for the higher resolution that comes with iPhone4, at least that's how it's done in the native SDK (i read about this in engadget's review of the new phone yesterday)

    — answered June 23rd 2010 by Christian Sigl
    permalink
    0 Comments
  • I was about to ask this question too.

    I have elements in my design which are set to be 300px (to give 10px either side - sure I could do this with left/right:10 in some cases - but not all ui elements allow this) so, will these 300px elements be half the width? Or display themselves in the same way as the the earlier devices?

    — answered June 24th 2010 by Kosso
    permalink
    0 Comments
  • I have the concern but my app, compiled with 3.13, turned out alright on the iPhone 4. It looks exactly the same as far as label, view dimension go. In the future, create UI images and such for the design, i probably go with the same old dimensions 320x480. Let's face it, the resolution is 2x but the screen is too darn small to see any differences. It's always good using small images file sizes.

    However, will it makes any differences if it were to build with iOS 4?

    — answered June 25th 2010 by Daniel Lim
    permalink
    0 Comments
  • Can someone from appcelerator confirm if this naming format will be supported by Ti?

    — answered June 26th 2010 by Nick The Geek
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.