WKWebView File URL loading Tests (for Radar bug report)
Objective-C HTML CSS
Latest commit 5c73faa Sep 21, 2016 @shazron committed on GitHub Merge pull request #6 from DaidoujiChen/feature/fix_autolayout_issue
Fix autolayout setting issue on labels



A test project to demonstrate that the WKWebView class cannot load file:// urls in iOS 8 beta 4 and 5 on a device. This works in iOS 8 beta 3 on a device, and also the iOS 8 Simulator (all beta versions).

Here's the main page, where you can test file:// urls that come from inside the app bundle, the Library folder, the Documents folder, and the tmp folder.

UPDATE - the code has been updated to show a new option to use the selector "loadFileURL:readAccessURL:" if available, and report it to you as well.

main screenshot

Here's what is expected to load:

expected result