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
Post a Comment