How would I detect the generation/model of an iOS device. I believe that I would use the "Get iPhone Settings" action, but I am not sure how I would use it to run a script depending on the generation/model. I am using the 2D Toolkit.
The scripts I would run would vary on the generation of the iOS device/model.
If the device is the iPhone 3GS or older, it would run this script
tk2dSystem.CurrentPlatform = "1x";
If the device is an iPhone 4, 4S, iPod Touch 4g, iPhone 5, 5C, 5S, iPod Touch 5g, iPad, iPad 2, iPad Mini (or any other devices other than retina iPads beyond the iPhone 3gs), it would run this script:
tk2dSystem.CurrentPlatform = "2x";
If the device is an iPad 3, iPad Mini Retina, iPad Air (or any iPad device beyond the iPad 3), it would run this script:
tk2dSystem.CurrentPlatform = "4x";
If someone could help me in creating such an FSM I would be very grateful!
Thanks!