Handling webview error events
11 Jan 2010, 18:09
Rob Lee (1 post)
I have a UIWebView with the delegates setup to monitor the loading of webpages. I am finding that some sites, including the iTunes App Store, error out in the uiwebview while they work in Safari.
The types of errors include too many forwards, timeouts, etc. I have read and implemented the delegate method to check on these errors during the should load url event. All the examples (few out there) say that the App Store issue can be resolved by switching the “itunes” part of the URL to “phobos”, but even that yields the too many forwards result. If I return no in this method, I don’t get any further. Another site example is my own, www.crazedkittysoftware.com which is forwarded to www.roblee.com/crazedkitty.
I also have problems with media types, like quicktime movies which will load in Safari but not in webview. An example is the videos at www.jpl.nasa.gov.
I am pretty certain this is all in the way the delegate is being handled. What I would appreciate is either a pointer to a great webview sample project that does this type of error handling or a short checklist of the things that must be covered to make sure the uiwebview will be behave like a regular Safari session. By the way, I do have forwards, backwards, reload, stop, and load into Safari working in my code.
I appreciate any guidance you can give me.
|You must be logged in to comment|