WebKit domain and error codes in iOS headers?

I want to catch a specific error from a UIWebView, specifically WebKitErrorFrameLoadInterruptedByPolicyChange (102) in webView: didFailLoadWithError:

The problem is that since the WebKit framework itself is not available in iOS, I cannot find these constants anywhere.

Is the only solution for hard code @ "WebKitErrorDomain" and 102?

I hope no:)

+5
source share
1 answer

Men I have the same problem. It is lazy but work

#define WebKitErrorFrameLoadInterruptedByPolicyChange 102

You can even use an enumeration if more constant is required.

0
source

All Articles