在iTunes登录提示状态下回拨 [英] Call back at iTunes login prompt appearance
问题描述
在iOS应用程序中处理inApp购买(使用Parse.com)时,用户单击购买并等待iTunes登录(或输入密码)提示出现。
在等待期间,我显示和activityView要求用户等待。
然后当提示出现时,我需要清理这个activityView。
我需要将代码放入的回调函数是什么?
是否有像loginPromptDidAppear这样的东西?我可以从中清除activityView。
When handling inApp purchase (using Parse.com) in an iOS app, the user clicks BUY and waits for the iTunes login (or enter password) prompt to come up. During the waiting time, I display and activityView to ask the user to wait. Then when the prompt shows up, I need to clean this activityView. What is the call back function I need to put the code into? Is there something like loginPromptDidAppear? From which I could clean off the activityView.
推荐答案
由于提示是由iOS发出的,而不是你的应用程序,你会得到一个在您的应用代表中调用 applicationWillResignActive
方法,就像收到电话时一样。
As the prompt is issued by iOS, not your app, you will get a call to the applicationWillResignActive
method in your app delegate, just as you would if a phone call is received.
你应该能够跟踪您的应用程序操作(即已启动购买),并在您的应用程序重新启动活动状态时做出相应的反应。
You should be able to track your app operation (i.e. purchase initiated) and react accordingly when your app resigns active state.
这篇关于在iTunes登录提示状态下回拨的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!