Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (device)
Viewing all articles
Browse latest Browse all 250

Detecting iOS device - Ti.Platform.model / Ti.Platform.osname ?

0
0

I've been trying to find out through the Q&A here how to actually detect if the device is an iPhone4S or not - but I can't seem to find out exactly how. I don't have an iPhone4(S), so I can't test on a physical device.

Ti.Platform.model returns (in the simulator) "Simulator" - anyone know what it returns for the various devices like iPhone3G(S), iPhone 4(S), iPad/iPad2 and the new iPad...?

The Ti.Platform.osname seems to return "ipad" or "iphone" - but I need more specifics....


Viewing all articles
Browse latest Browse all 250

Latest Images

Trending Articles





Latest Images