Hi,
my UIWebView is behaving strangely. For example, if I go from http://google.co.uk to http://ftd.de (a news site), it will start looping with errors. It doesn't care if I press stop or not, it just continues.
The log outputs the following and loops the message:
2010-09-03 16:16:55.061 Test [1336:207] http://www.ftd.de/
2010-09-03 16:16:55.077 Test [1336:207] {
NSErrorFailingURLKey = http://www.ftd.de/;
NSErrorFailingURLStringKey = "http://www.ftd.de/";
}
2010-09-03 16:16:55.082 Test [1336:207] http://www.google.co.uk/
2010-09-03 16:16:55.101 Test [1336:207] {
NSErrorFailingURLKey = http://www.google.co.uk/;
NSErrorFailingURLStringKey = "http://www.google.co.uk/";
}
and this keeps on looping until I kill the app.
What can cause something like this? The error dictionary, as you can see, doesn't provide any information on the error.
So I've attempted this workaround:
if ([[error userInfo] objectForKey:@"NSLocalizedDescription"] == nil) { NSLog(@"Stop!");
[browser goBack];
[browser stopLoading];
}
However this doesn't stop the webview either.
Any ideas? :) I'm using the iPad SDK.