Method [[UIDevice currentDevice] uniqueIdentifier] is not allowed any more, I need an alternative

后端 未结 3 1909
执笔经年
执笔经年 2020-12-31 19:10

I\'m using [[UIDevice currentDevice] uniqueIdentifier] in all of my apps, Apple is not allowing the use of uniqueIdentifier anymore. I need somethi

3条回答
  •  天涯浪人
    2020-12-31 19:46

    with digipeople's hack.

    Fix it to avoid app crash.

    systemId = [[NSUUID UUID] UUIDstring];

    http://developer.apple.com/library/mac/documentation/Foundation/Reference/NSUUID_Class/Reference/Reference.html#//apple_ref/occ/instm/NSUUID/UUIDString

提交回复
热议问题