【发布时间】:2016-07-09 11:59:06
【问题描述】:
我在尝试使用以下 StoreKit 常量之一时收到错误“使用未解析的标识符”:
SKErrorClientInvalid
SKErrorPaymentCancelled
SKErrorPaymentInvalid
SKErrorPaymentNotAllowed
SKErrorStoreProductNotAvailable
SKErrorUnknown
您的代码可能如下所示:
if transaction.error!.code == SKErrorPaymentCancelled {
print("Transaction Cancelled: \(transaction.error!.localizedDescription)")
}
发生了什么变化?我需要导入新模块吗?
【问题讨论】:
标签: ios swift swift2 storekit nserror