2013-07-26 123 views
2

我的應用程序在控制檯中獲取endIgnoringInteractionEvents消息。但是如果使用斷點,有時會在此消息後崩潰。以下是信息。在控制檯中獲取endIgnoringInteractionEvents消息

[UIApplication endIgnoringInteractionEvents] called without matching -beginIgnoringInteractionEvents. Ignoring. 

我研究了它,發現它在動畫之前和之後用於處理動畫過程中的用戶交互。但我沒有在我的項目中使用這些事件,那麼如何才能發出這個錯誤,我沒有得到。 ALl使用paypal sdk時會發生這種情況。在我完成PayPal和PayPal庫中的付款過程之後,退出此操作。如何處理這個請指導。 在此先感謝。

回答

4

您可以隨時檢查

if ([[UIApplication sharedApplication] isIgnoringInteractionEvents]) 
{ 
    [[UIApplication sharedApplication] endIgnoringInteractionEvents]; 
} 
+0

凡實現此代碼viewDidLoad中或其他地方。 –

+0

哦。我懂了。你沒有在任何地方使用這個功能。請參閱此問題中提供的參考鏈接。可以幫助你。 http://stackoverflow.com/questions/15061917/how-to-match-beginignoringinteractionevents-before-adding-endignoringinteraction –