• 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: Getting the failed URL from webView:didFailProvisionalNavigation:withError:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:


  • Subject: Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:
  • From: Roland King <email@hidden>
  • Date: Thu, 16 Jul 2015 14:39:34 +0800

> On 16 Jul 2015, at 14:23, Rick Mann <email@hidden> wrote:
>
> This delegate method is passed a WKWebView whose URL property is nil, a WKNavigation that doesn't have any information, and an NSError that has in its userInfo dictionary a NSErrorFailingURLStringKey. But in iOS 9 this key is marked as deprecated in iOS 7 and is thus unusable in Swift.
>
> ViewController.swift:86:36: 'NSErrorFailingURLStringKey' is unavailable: APIs deprecated as of iOS 7 and earlier are unavailable in Swift
>
> Any alternatives? Thanks.
>
> --
> Rick Mann
> email@hidden
>

Don’t you have a WKNavigation from the original load which you can compare this one with and work out what it was you were doing, and thus what it was it failed on?
_______________________________________________

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: Getting the failed URL from webView:didFailProvisionalNavigation:withError:
      • From: Rick Mann <email@hidden>
References: 
 >Getting the failed URL from webView:didFailProvisionalNavigation:withError: (From: Rick Mann <email@hidden>)

  • Prev by Date: Getting the failed URL from webView:didFailProvisionalNavigation:withError:
  • Next by Date: Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:
  • Previous by thread: Getting the failed URL from webView:didFailProvisionalNavigation:withError:
  • Next by thread: Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:
  • Index(es):
    • Date
    • Thread