title: How to hide my waiting screen when In app purchase UIAlertView is show?
body: <p>I've added an UIAlertView that has UIActivityIndicatior as a subview on my application. This alertView only show when the purchase is in progress. How to hide my waiting screen when In app purchase UIAlertView is show?</p>
  
  <p><img src="https://i.stack.imgur.com/3rLhX.png" alt="In app purchase UIAlertView"></p>
  
  <pre><code>- (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions
  {
      for (SKPaymentTransaction *transaction in transactions)
      {
          switch (transaction.transactionState)
          {
              case SKPaymentTransactionStatePurchasing:
                  [self stillPurchasing]; // this show a waiting screen
                  break;
              case SKPaymentTransactionStatePurchased:
                  NSLog(@"2");
                  [self completeTransaction:transaction];
                  break;
              case SKPaymentTransactionStateFailed:
                  [self failedTransaction:transaction];
                  break;
              case SKPaymentTransactionStateRestored:
                   NSLog(@"4");
                  [self restoreTransaction:transaction];
                  break;
              default:
                  NSLog(@"5");
                  break;
          }
      }
  }
  </code></pre>
  
  <p>Thank you.</p>