本文介绍了使用未声明类型 AutoreleasingUnsafePointer Xcode 6 beta 6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下代码给出了编译器错误使用未声明的类型 AutoreleasingUnsafePointer"

The following code gives a compiler error "Use of undeclared type AutoreleasingUnsafePointer"

    var myString: AutoreleasingUnsafePointer<NSString?>

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

Have I missed a compiler setup step?

谢谢

推荐答案

文档修订历史

更新指针部分以反映 UnsafePointer 已替换为 UnsafeMutablePointerConstUnsafePointer 已替换为 UnsafePointer>,并且 AutoreleasingUnsafePointer 已被替换为 AutoreleasingUnsafeMutablePointer.

所以你必须使用AutoreleasingUnsafeMutablePointer

这篇关于使用未声明类型 AutoreleasingUnsafePointer Xcode 6 beta 6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 04:10