我正在使用ASTStoreKit进行IAP非消费品购买。有没有人有任何例子如何做到这一点?我有两个非消耗品在应用程序中(我只在购买成功时解锁)和两个我必须从自己的服务器下载内容。在ASTStoreController.m中(这是来自https://github.com/anystone/AnystoneStoreKit/blob/master/README.mdown
)
- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
{
for (SKPaymentTransaction *transaction in transactions)
{
switch (transaction.transactionState)
{
case SKPaymentTransactionStatePurchased:
[self completeTransaction:transaction];
break;
case SKPaymentTransactionStateFailed:
[self failedTransaction:transaction];
break;
case SKPaymentTransactionStateRestored:
[self restoreTransaction:transaction];
break;
default:
break;
}
}
}
下载然后完成交易(情侣MB)的正确方法是什么? 我下载内容异步方式,然后解压缩然后调用完成?