标签: ios in-app-purchase swift3 receipt-validation
我编写了一个方法来解析InAppPurchase中Swift2.3的收据,现在我将其转换为Swift3。所以我收到了这个错误。任何人都有想法,如何解决这个问题?
InAppPurchase
Swift2.3
Swift3
答案 0 :(得分:0)
试试这个,
var p: UnsafePointer<UInt8>? = (data as NSData).bytes.bindMemory(to: UInt8.self, capacity: data.count)