UnsafePointer no longer works in swift 3
问题 After I convert from swift 2 to swift 3, there is an error pop up for the below metioned line let value = UnsafePointer<UInt32>(array1).pointee 'init' is unavailable: use 'withMemoryRebound(to:capacity:_)' to temporarily view memory as another layout-compatible type. in swift2 it is like let value = UnsafePointer<UInt32>(array1).memory Can someone explain please? Sorry I'm quite new to swift3 After i have make the changes to let abc = UnsafePointer<UInt32>(array1).withMemoryRebound(to: <#T##T