[[SKPaymentQueue defaultQueue] addPayment:payment]崩溃
解决:
添加内购代理方法:
- (void)paymentQueue:(SKPaymentQueue *)queue removedTransactions:(NSArray<SKPaymentTransaction *> *)transactions {
NSLog(@"交易结束");
self.view.userInteractionEnabled = YES;
[[SKPaymentQueue defaultQueue] removeTransactionObserver:self];
}
网友评论