在uiwebview ios中获取本地javascript

Joh*_*ohn 9 javascript jquery local uiwebview ios

------------------通知----------------对不起家伙,犯了一个愚蠢的错误,我已经找到了这个修复: https://devforums.apple.com/message/32282

哪个有效,但没有意识到目标位置在较新版本的Xcode中发生了变化,所以改为点击左侧列表顶部的项目文件,然后找到了复制捆绑资源的方式.不确定为什么除了js之外的所有内容默认显示在那里,但是从左侧列表中拖动文件修复了我的问题!

我正在使用uiwebview(书籍应用程序)在html中为ios编写应用程序,并使用jquery和touchwipe来使用滑动来向前/向后移动页面.

当我在html中输出这样的javascript时,我的代码有效:

<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="http://www.netcu.de/templates/netcu/js/jquery.touchwipe.min.js"></script>
Run Code Online (Sandbox Code Playgroud)

但是当我尝试在本地存储js时不起作用,如下所示:

<script type="text/javascript" src="jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="jquery.touchwipe.min.js"></script>
Run Code Online (Sandbox Code Playgroud)

.js文件当然是在xcode项目中,在html文件旁边(我认为这并不重要,因为在构建时所有内容都被展平)

谁能指出我正确的方向?我在Mac OS 10.6.8上使用Xcode 4.2

Joh*_*ohn 1

在问题顶部已完整回答