Reputation: 4617
In my application view I have web view. Now if the webview is loading the data and user press power button of the iphone to lock the device then some time the app halts. When user unlock the device then app throws this error message.
void SendDelegateMessage(NSInvocation*): delegate (webView:resource:willSendRequest:redirectResponse:fromDataSource:)
failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode
so will you please tell me how this problem can be solved. This problem happens often.
Upvotes: 0
Views: 250
Reputation: 12405
check if the UIApplicationWillResignActiveNotification
is fired (which it does when the user locks the iphone) then just stop loading the webview...
[webView stopLoading];
let me know if this works...
Upvotes: 0