• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UIWebView: Unexpected NSURLErrorCancelled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIWebView: Unexpected NSURLErrorCancelled


  • Subject: Re: UIWebView: Unexpected NSURLErrorCancelled
  • From: Jeff Johnson <email@hidden>
  • Date: Tue, 26 Apr 2011 07:52:08 -0500

On Apr 26, 2011, at 6:37 AM, Phillip Mills wrote:

> I'm trying to debug something in an iPad app with very limited information and hoping that the symptoms will ring a bell with someone.  This is based on a report from one user and is nothing I've been able to reproduce.
>
> I have a  UIViewController subclass that shows a UIWebView and is also its delegate.  At a certain point, this controller is presented full-screen modal, does some setup, and invokes loadRequest: for its UIWebView.  The URL always points to a local file.  There's nowhere in the code that allows the user to stop the load or to load anything else while the first load is taking place.
>
> The program, however, is getting a callback at webView:didFailLoadWithError: with the -999 error code.  I'm told that it doesn't always happen and there seems to be no clear pattern (so far).  The user suspects that the behaviour may have started with her most recent upgrade of iOS.
>
> I haven't found any documentation that describes a situation that returns this error and which could match these conditions.  Or, if I have, I didn't understand it.  :-)
>
> Suggestions?

Hi Phillip.

You can get this "error" when the page automatically redirects via Javascript. I would recommend just ignoring the error, treating it as a non-error condition.

-Jeff

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: UIWebView: Unexpected NSURLErrorCancelled
      • From: Phillip Mills <email@hidden>
References: 
 >UIWebView: Unexpected NSURLErrorCancelled (From: Phillip Mills <email@hidden>)

  • Prev by Date: UIWebView: Unexpected NSURLErrorCancelled
  • Next by Date: Re: UIWebView: Unexpected NSURLErrorCancelled
  • Previous by thread: UIWebView: Unexpected NSURLErrorCancelled
  • Next by thread: Re: UIWebView: Unexpected NSURLErrorCancelled
  • Index(es):
    • Date
    • Thread