Created
January 23, 2015 16:17
-
-
Save koenbok/aac31b55bfa8f88e4c95 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _webView2 = [[WKWebView alloc] initWithFrame:NSZeroRect configuration:configuration]; | |
| WKPageGroupRef pageGroupRef = WKPageGetPageGroup(_webView2.wkView.pageRef); | |
| WKPreferencesRef preferencesRef = WKPageGroupGetPreferences(pageGroupRef); | |
| WKPreferencesSetFileAccessFromFileURLsAllowed(preferencesRef, YES); | |
| NSLog(@"WKPreferencesSetFileAccessFromFileURLsAllowed %ld", (long)WKPreferencesGetFileAccessFromFileURLsAllowed(preferencesRef)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment