How to detect iOS device UDID, Name, Version, Model by programmatically?

Hello Friends,

Good Day!

In our application in any one part we need iOS device UDID, Name, Version, Model, System Name for app security or something.
I hope we all are know about to get these items by programmatically. But, in iOS 6.0 I tried to get UDID by using UIDevice but, it is deprecated.
In iOS 6 we have to use NSUUID instead of UIDevice.

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;

I hope it will help someone. I welcome your comments and ideas on this post. Thanks.

Warm Regards,
Yuvaraj Manickam.

About these ads

5 thoughts on “How to detect iOS device UDID, Name, Version, Model by programmatically?

  1. I like the helpful info you supply on your articles. I will bookmark your weblog and test once more right here regularly. I’m somewhat sure I’ll learn a lot of new stuff proper here! Good luck for the next!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s