gpt4 book ai didi

iphone - 代码: "uniqueIdentifier deprecated"

转载 作者:行者123 更新时间:2023-11-28 18:26:08 26 4
gpt4 key购买 nike

我经常被告知要忽略这个编译器警告,因为在发布下一个 iOS 主要版本之前它不会成为问题。好吧……如果我的 iPhone 应用程序没有有一天突然停止工作就好了!

奇怪的是我在 OpenGL 2.0 上使用 cocos2d 时没有这个问题,只有 OpenGL 1.1 版本有这个问题。

这是否意味着在较新版本中提供了替代方案?

最佳答案

documentation 中的“特殊注意事项”部分告诉您现在获得唯一标识符的推荐方法是什么:

Do not use the uniqueIdentifier property. To create a unique identifier specific to your app, you can call the CFUUIDCreate function to create a UUID, and write it to the defaults database using the NSUserDefaults class.

关于iphone - 代码: "uniqueIdentifier deprecated",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8818949/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com