objective c - The [UIDevice uniqueIdentifier] become private in iOS 6.0 -


apple doesn't allowed add application app store used [uidevice uniqueidentifier] because property become private in ios sdk 6.0

what alternatives?

you can use/create "your own" udid:

+(nsstring *)getuuid {     cfuuidref newuniqueid = cfuuidcreate(kcfallocatordefault);     nsstring * uuidstring = (__bridge_transfer nsstring*)cfuuidcreatestring(kcfallocatordefault, newuniqueid);     cfrelease(newuniqueid);      return uuidstring; } 

you should keep in mind method produce different id on every call should persist how, not identical alternative udid, uses better that.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -