context.info = UnsafeMutablePointer(Unmanaged.passUnretained(self).toOpaque())
我不确定如何解决此问题。我确实调查过:
https://github.com/apple/swift-evolution/blob/master/proposals/0017-convert-unmanaged-to-use-unsafepointer.md
但是,我不确定如何正确修复该错误。
有什么帮助吗?
最佳答案
UnsafeMutableRawPointer(Unmanaged.passUnretained(self).toOpaque())
为我工作
关于ios - Unmanaged.passUnretained(self).toOpaque()到Swift 3,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38005151/