Possible Duplicate:
Determine device (iPhone, iPod Touch) with iOS
How to check iOS version?
I am using this function to get the device name
NSString *device=[UIDevice currentDevice].model;
it returns me, for example, "iPhone" .
is there a way to get the device version, for example, "iPhone 4S".