wkwebview离线化加载h5资源解决方案
思路: 使用NSURLProtocol拦截请求转发到本地。
Step 1
# start zip download serve
npm run 3238
Step 2
# start web serve
npm run 3233
Step 3
# iOS project
cd proxy-browser && pod install
Step 4
# open xcworkspace + run app
Objective-C example to proxy local files in wkwebview
wkwebview离线化加载h5资源解决方案
思路: 使用NSURLProtocol拦截请求转发到本地。
Step 1
# start zip download serve
npm run 3238
Step 2
# start web serve
npm run 3233
Step 3
# iOS project
cd proxy-browser && pod install
Step 4
# open xcworkspace + run app
Objective-C example to proxy local files in wkwebview