I´m able to get the current device right now by checking this:
static func iPhoneModelSize() -> Int{
switch UIDevice.currentDevice().modelName {
case "iPhone 4", "iPhone 4S" :
return 8
case "iPhone 5", "iPhone 5C", "iPhone 5S" :
return ...
case "iPhone 6, iPhone 6s" :
return ...
case "iPhone 6 Plus, iPhone 6s Plus" :
return ...
default:
return ...
}
}
But when I´m using the simulator I always have to change the default value since it´s the simulator, is there any other way to get the current device AND also the current simulator device?