Skip to content Skip to sidebar Skip to footer

Load Local Html File Doesn't Refer The Js File In Uiwebview

I am working with UIWebView project and I want to load an HTML file from a project resource. It is working fine when I run from the URL, but when I view the HTML file locally, JS f

Solution 1:

i am find the problem is js files are not automatically copy to project bundles so, you can try follow instructions like below:

go to your project target -> click tab to Bulid Phases -> expand the section copy Bundle Resources -> now find all files bin bundle resources of your project check your js files not copied,so, click + button and add js files manually on your project!

now run the project working perfectly!

like below screen shot:

enter image description here

after add js file in your project below screen shot:

enter image description here

welcome!

Post a Comment for "Load Local Html File Doesn't Refer The Js File In Uiwebview"