I had a problem where I loaded a local html file but the linked javascript files were not running. I used iWebinspector to view the problem closer and found that the javascript files were not found. The solution was to tell Xcode to copy the js file to the Bundle as unchanged resources instead of compiling it. To do this in Xcode 4:
- Select the project in the left pane
- Select your target
- Select Build Phases
- Expand "Copy Bundle Resources"
- Add your javascript files to this section.
source: one of the last responses on http://stackoverflow.com/questions/4591287/problem-loading-js-file-in-webview
No comments:
Post a Comment