用内购买商店加载后如何停止uiactivityindicator

用内购买商店加载后如何停止uiactivityindicator

我以为其中之一会做到,没有一个人被称为-_-

- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
{
    NSLog(@"flag paymentQueue");

// spinner.hidden = YES; //这要去哪里?
    for (SKPaymentTransaction *transaction in transactions)
    {
        switch (transaction.transactionState)
        {
            case SKPaymentTransactionStatePurchasing:
            //    [self stillPurchasing]; // this creates an alertView and shows
                NSLog(@"flag SKPaymentTransactionStatePurchasing");

                break;
            case SKPaymentTransactionStatePurchased:
                NSLog(@"flag SKPaymentTransactionStatePurchased");

                [self completeTransaction:transaction];
                break;
            case SKPaymentTransactionStateFailed:
                NSLog(@"flag SKPaymentTransactionStateFailed");

                [self failedTransaction:transaction];
                break;
            case SKPaymentTransactionStateRestored:
                NSLog(@"flag SKPaymentTransactionStateRestored");

                [self restoreTransaction:transaction];
           //     spinner.hidden=YES;
                break;

谢谢!!!

最佳答案

您可以通过以下方法隐藏微调框-

    - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response {
      [target hideSpinner];
     }

关于iphone - 等待应用内购买商店加载后如何停止uiactivityindicator,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8887050/

10-10 17:36