Titanium Community Questions & Answer Archive

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

Titanium.Platform.model ?

I am just banging my head here trying to get this to work.

if (Titanium.Platform.model =='iPhone 3_2' ) //Detect iPad 3.2
Do this view
if (Titanium.Platform.model =='iPhone 4' ) // Detect iOS 4+
Do that other view

For some reason I can not get the out come I need. Any Help on the proper way to get the OS version and then show this view depending on the OS?

— asked September 10th 2010 by Jeffrey Messick
  • 3.2
  • 4
  • detect
  • if
  • ios
  • iphone
  • statement

1 Answer

  • Hi, i've and Iphone 3gs, and i run an app , the model it show me was iPhone 3GS

    Look this table


    — answered July 25th 2011 by Roberto Salguero
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.