2011-06-02 78 views

回答

8
[[UIDevice currentDevice] uniqueIdentifier] 
0

由于安装iOS 5.0的这个属性被弃用,Apple advises您创建自己独特的应用程序ID:

请勿使用uniqueIdentifier属性。要为您的应用创建唯一的 标识符,您可以调用CFUUIDCreate 函数来创建UUID,并使用NSUserDefaults类将其写入默认数据库。

相关问题