swift – 使用未声明的类型AutoreleasingUnsafePointer Xcode 6 beta 6

swift – 使用未声明的类型AutoreleasingUnsafePointer Xcode 6 beta 6,第1张

概述以下代码给出了编译器错误“使用未声明类型AutoreleasingUnsafePointer” var myString: AutoreleasingUnsafePointer<NSString?> 我错过了编译器设置步骤吗? 谢谢 如 documentation revision history所述 Updated the Pointers section to reflect that Un 以下代码给出了编译器错误“使用未声明的类型autoreleasingUnsafePointer”

var myString: autoreleasingUnsafePointer<Nsstring?>

我错过了编译器设置步骤吗?

谢谢

解决方法 如 documentation revision history所述

Updated the Pointers section to reflect that UnsafePointer has been replaced with UnsafeMutablePointer,ConstUnsafePointer has been replaced with UnsafePointer,and autoreleasingUnsafePointer has been replaced with autoreleasingUnsafeMutablePointer.

所以你必须使用autoreleasingUnsafeMutablePointer

总结

以上是内存溢出为你收集整理的swift – 使用未声明的类型AutoreleasingUnsafePointer Xcode 6 beta 6全部内容,希望文章能够帮你解决swift – 使用未声明的类型AutoreleasingUnsafePointer Xcode 6 beta 6所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/web/1008456.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存