你應該要麼沒有進度條,或者,再拍AlertView,當SKPaymentStatePurchasing
然後做一個void
:
- (void) purchasingProductAlertShow {
UIAlertView *purchasingProductAlert = [[UIAlertView alloc]
initWithTitle:@""
message:[NSString stringWithFormat:@"Loading..."]
delegate:nil
cancelButtonTitle:@""
otherButtonTitles:nil];
[purchasingProductAlert show];
}
或類似的東西,那麼,當SKPaymentStatePurchased
做purchasingProductAlert = nil;
你可能想使自己的,但是購買的自定義警報視圖。
你也可以提醒他們在購買完成後,你可以做到這一點,像這樣:當SKPaymentStatePurchased
做出void
:
- (void) purchasedProductAlertShow {
UIAlertView *purchasedProductAlert = [[UIAlertView alloc]
initWithTitle:@"Complete!"
message:[NSString stringWithFormat:@"Your purchase is complete! You will now be able to enjoy no ads!"]
delegate:nil
cancelButtonTitle:@"Okay!"
otherButtonTitles:nil];
[purchasedProductAlert show];
}
的消息,你會希望把任何你想在那裏,我以移除廣告爲例。然後在SKPaymentStatePurchased
做[self purchasedProductAlertShow]
以及任何其他的代碼。這將使得當用戶完成購買時,它顯示提示purchasingProductAlert
換句話說,用戶將知道何時確認購買,但不知道下載何時完成。當內容出現在應用中時,他們最終會知道。這是對的嗎? –
如果你沒有額外的東西,他們將不知道它什麼時候完成。檢查我的更新代碼,以瞭解如何在完成時提醒他們。 @VictorEngel – Jojodmo
謝謝。具有諷刺意味的是,顯然無效是無效的。 :) –