UIDeviceHardware

Category to check hardware version that's running iOS

250
50
Objective-C

UIDeviceHardware

Category to check hardware version that’s running iOS

Usage

To get the platform identfier

NSString *platform = [UIDeviceHardware platform];

To get the platform name

NSString *platformString = [UIDeviceHardware platformString];

Reference

http://theiphonewiki.com/wiki/Models