Using .html, .js file saved in the sandbox(Documents directory) of an iOS App so that I am able to open the html file in offline mode as well

前端 未结 2 970
走了就别回头了
走了就别回头了 2020-12-21 13:46

I have to display an .html file which needs highcharts.js, jquery.min.js in order to display a graph. I am planning to display the .html file in a UIWebView.

I saw t

2条回答
  •  情深已故
    2020-12-21 14:12

    You can boot http server locally (via for example https://github.com/robbiehanson/CocoaHTTPServer) and set //Documents/yourFolder as server root. Then you can open in UIWebView NSURL like this: http://localhost:8080/index.html

提交回复
热议问题