Hello,
the documentation of application:getDeviceInfo say
> For iOS, returns 5 values: “iOS”, iOS version, device type, user interface idiom and device model
which possible values are returned for device type?
(i am interested into distinguish iPads from other iOS devices)
Comments
if application:getDeviceWidth() == 768 then it's an iPad
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
1st value -> "iOS"
2nd value -> [[UIDevice currentDevice] systemVersion]
3rd value -> [[UIDevice currentDevice] model]
4th value -> UI_USER_INTERFACE_IDIOM() (as "iPhone" or "iPad")
5th value -> hw.machine. Here are the possibilities:
Fair point though - still the concept was sound
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
Looks like the the 4th one?
and 4th value is idiom, to distinguish between ipad or iphone. So any ipad will be ipad and any iphone will be iphone
http://docs.giderosmobile.com/reference/gideros/Application/getDeviceInfo#Application:getDeviceInfo