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: Rick Mann <email@hidden>
- Date: Wed, 15 Jul 2015 23:42:01 -0700
> On Jul 15, 2015, at 23:39 , Roland King <email@hidden> wrote:
>
>
>> 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?
Ah, so, I have to keep track of them myself? Ugh, that seems lame. Thanks, though.
--
Rick Mann
email@hidden
_______________________________________________
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