我的一小段代碼片段如下...:
:let defaultRouteReachability = withUnsafePointer(to: &zeroAddress) {
SCNetworkReachabilityCreateWithAddress(nil, UnsafePointer($0))
}
...確實不再與下面的錯誤,我不明白編譯
"'init' is unavailable: use 'withMemoryRebound(to:capacity:_)' to temporarily view memory as another layout-compatible type."
如何解決?
注意http://stackoverflow.com/a/25623647/1187415已經更新爲當前斯威夫特3. –