Getting the failed URL from webView:didFailProvisionalNavigation:withError:
Getting the failed URL from webView:didFailProvisionalNavigation:withError:
- Subject: Getting the failed URL from webView:didFailProvisionalNavigation:withError:
- From: Rick Mann <email@hidden>
- Date: Wed, 15 Jul 2015 23:23:28 -0700
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
_______________________________________________
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