0 votes
3.4k views
asked in Objective C by (4.2k points)

In our application in any one part we need iOS device UDID, Name, Version, Model, System Name for app security

1 Answer

0 votes
answered by (8.2k points)

hi

   In iOS 5 and below:

UIDevice *myDevice = [UIDevice currentDevice];
NSString *deviceUDID = myDevice.uniqueIdentifier;
NSString *deviceName = myDevice.Name;
NSString *deviceSystemName = myDevice.systemName;
NSString *deviceOSVersion = myDevice.systemVersion;
NSString *deviceModel = myDevice.model;

In iOS 6 to get UDID:

NSUUID *myDevice = [NSUUID UUID];
NSString *deviceUDID = myDevice.UUIDString;

Categories

...