2014-09-06 53 views

回答

7

documentation revision history

更新了指針節所述,以反映UnsafePointer已被替換爲UnsafeMutablePointerConstUnsafePointer已經替換爲UnsafePointer,並AutoreleasingUnsafePointer已被替換爲AutoreleasingUnsafeMutablePointer

所以,你必須使用AutoreleasingUnsafeMutablePointer

1

我有同樣的問題,但是,使用NSError。在新版本的Xcode(6.4)和Swift(以前的版本2)中,有必要使用:

var err: AutoreleasingUnsafeMutablePointer<NSError?> = nil