UIDevice
Undocumented
-
Retrieves the model of the device currently being used (such as iPhone 4s). Simulators of a device are not distinguished from a physical device.
Declaration
Swift
var modelName: String
-
Checks if the current device is a simulator or a physical device.
Declaration
Swift
var isSimulator: Bool