Re: Getting the failed URL from webView:didFailProvisionalNavigation:withError:
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