你应该要么没有进度条,或者,再拍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
谢谢。具有讽刺意味的是,显然无效是无效的。 :) –