I have written a method for parsing Receipt of InAppPurchase
in Swift2.3
and now I am converting it to Swift3
. So I am getting this error. Anyone has idea, how to fix this?
Try like this,
var p: UnsafePointer<UInt8>? = (data as NSData).bytes.bindMemory(to: UInt8.self, capacity: data.count)