IOS Devices: Difference between revisions

From Graal Bible
No edit summary
(4th-gen iPod, multiple model IDs)
Line 1: Line 1:
[[Category:iPhone]]{{Title|iOS Devices}}
[[Category:iPhone]]{{Title|iOS Devices}}
The following is a list of released iOS devices.
The following is a list of released iOS devices. Devices with multiple model identifiers are identical devices except for some internal detail, such as the type of radio. CDMA denotes that the device uses an AT&T-style radio, whereas GSM indicates a Verizon-style radio.


{| border="1" cellpadding="5"
{| border="1" cellpadding="5"
Line 13: Line 13:
| iPad 2
| iPad 2
| Second iPad. Faster than all other iOS devices.
| Second iPad. Faster than all other iOS devices.
| iPad2,1
| iPad2,1 (WiFi), iPad2,2 (GSM), iPad2,3 (CDMA)
|-
|-
| iPhone
| iPhone
Line 29: Line 29:
| iPhone 4
| iPhone 4
| Faster than all other iPhones. Roughly equal to iPad.
| Faster than all other iPhones. Roughly equal to iPad.
| iPhone3,1
| iPhone3,1 (GSM), iPhone3,3 (CDMA)
|-
|-
| iPod Touch
| iPod Touch
Line 42: Line 42:
| Roughly as fast as iPhone 3GS
| Roughly as fast as iPhone 3GS
| iPod3,1
| iPod3,1
|-
| iPod Touch (4th gen)
| Same processor as iPhone 4, retina display
| iPod4,1
|}
|}



Revision as of 16:56, 20 June 2011

The following is a list of released iOS devices. Devices with multiple model identifiers are identical devices except for some internal detail, such as the type of radio. CDMA denotes that the device uses an AT&T-style radio, whereas GSM indicates a Verizon-style radio.

Name Description Model Identifier
iPad Original iPad. Faster than all devices prior to the iPad 2. iPad1,1
iPad 2 Second iPad. Faster than all other iOS devices. iPad2,1 (WiFi), iPad2,2 (GSM), iPad2,3 (CDMA)
iPhone Original iPhone iPhone1,1
iPhone 3G Same processor as original iPhone1,2
iPhone 3GS Faster than 3G and iPod touch 2G iPhone2,1
iPhone 4 Faster than all other iPhones. Roughly equal to iPad. iPhone3,1 (GSM), iPhone3,3 (CDMA)
iPod Touch Original iPod Touch, roughly equal to orignal iPhone iPod1,1
iPod Touch (2nd gen) Faster than iPhone 3G and original iPod Touch iPod2,1
iPod Touch (3rd gen) Roughly as fast as iPhone 3GS iPod3,1
iPod Touch (4th gen) Same processor as iPhone 4, retina display iPod4,1

GScript

iOS device identifiers can be retrieved by using the clientside function getiPhoneModel.

temp.deviceID = getiPhoneModel();
player.chat = temp.deviceID;

Device Tiers

It is useful to split devices into tiers so that effects which may not be possible on older devices can still be used on new ones. The following code can be used to determine a device tier:

public function getDeviceTier() {
  temp.deviceID = getiPhoneModel();
  
  if (temp.deviceID in {"iPod1,1", "iPhone1,1", "iPhone1,2"}) {
    return 0;
  }
  
  if (temp.deviceID in {"iPod2,1", "iPhone2,1", "iPod3,1"}) {
    return 1;
  }
  
  if (temp.deviceID in {"iPhone3,1", "iPad1,1"}) {
    return 2;
  }
  
  if (temp.deviceID in {"iPad2,1"}) {
    return 3;
  }
  
  return 999; // computers or unknown devices
}