iPhone/iPad unique identifier BESIDES UUID/UDID?

后端 未结 6 2046
醉话见心
醉话见心 2020-12-14 04:08

The project I am on is requesting two (or even three) unique identifiers from the iPhone or iPad. I know, I know... the UDID should be enough but we are trying to see if th

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-14 04:30

    This question is old however a new unique, vendor based, identifier has now been added to replace the deprecated UUID in iOS 6.

    The [UIDevice identifierForVendor] should now be used instead of [UIDevice uniqueIdentifier] which is now deprecated as of iOS 5.0

    Example usage:

    NSUUID *uuid = [[UIDevice currentDevice] identifierForVendor];
    NSString *uuidString = [uuid UUIDString];
    

提交回复
热议问题