|
|
|
|
|
|
switch ((int)[[UIScreen mainScreen] nativeBounds].size.height) { |
|
|
|
//iPhone 5 or 5S or 5C |
|
|
|
case 1136: |
|
|
|
_deviceName = @"iPhone 5"; |
|
|
|
_deviceName = @"iPhone 5 Simulator"; |
|
|
|
_deviceName = @"iPhone 6"; |
|
|
|
_deviceName = @"iPhone 6 Simulator"; |
|
|
|
_deviceName = @"iPhone 6 Plus"; |
|
|
|
_deviceName = @"iPhone 6 Plus Simulator"; |
|
|
|
_deviceName = @"iPhone 6 Plus"; |
|
|
|
_deviceName = @"iPhone 6 Plus Simulator"; |
|
|
|
_deviceName = @"iPhone X"; |
|
|
|
_deviceName = @"iPhone X Simulator"; |
|
|
|
_deviceName = @"iPhone XS Max"; |
|
|
|
_deviceName = @"iPhone XS Max Simulator"; |
|
|
|
_deviceName = @"iPhone XR"; |
|
|
|
_deviceName = @"iPhone XR Simulator"; |
|
|
|
_deviceName = @"Unknown"; |
|
|
|
_deviceName = @"Unknown Simulator"; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|