Titanium Community Questions & Answer Archive

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

iPhone 3gs vs. iPhone 4 in simulator

What am I doing wrong?

Titanium.Platform returns the same results for either 3gs or iPhone 4 in the simulator. For example, both the 3Gs and 4 return the same screen resolution of 320x480 in the simulator. This is true in the Kitchen Sink app also.

— asked October 26th 2010 by Steven Day
  • iphone
  • simulator
0 Comments

2 Answers

  • You can change the iPhone 4 size in the top menu under Window/Scale

    — answered October 26th 2010 by Ivan Mathy
    permalink
    1 Comment
    • For some reason it's grayed out on my simulator. It shows the option of 50% or 100% scaling, but I can't figure out how to get in enabled. I've tried various API versions (3.2, 4.0, 4.1) different hardware iPad, 3Gs, 4. None seem to allow the scaling to be used? I've even tried launching it from X-code to see if that would allow it. I'm not sure what I'm doing wrong.

      — commented October 26th 2010 by Steven Day
  • Try detecting the 'density' from the DisplayCaps object :

    http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Platform.DisplayCaps-object.html

    — answered October 26th 2010 by Kosso
    permalink
    1 Comment
    • The density is reported @ 160dpi in all cases in the Kitchen Sink app. (at least for me it is)

      — commented October 27th 2010 by Steven Day
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.