[英]Date Picker using Jquery in iphone
I want to load date picker using mobilscroll jQuery in iphone. 我想在iPhone中使用mobilscroll jQuery加载日期选择器。 So i have dropped those files of mobiscroll in xcode.and i have called index.html in webview.but in Webview i am not getting anything. 所以我在xcode中删除了mobiscroll的那些文件,并且在webview中调用了index.html。但是在Webview中我什么也没得到。 Nothing is displaying. 什么都没显示。 Please help 请帮忙
There are many ways to get empty screen. 有很多方法可以使屏幕空白。 You should check all of the below items: 您应检查以下所有项目:
You should be careful about the location of the JS and CSS files in the HTML files. 您应该注意HTML文件中JS和CSS文件的位置。 Such as, when i develop UIWebView apps, I just copy the all of the js and css files to the documents directory in the AppDelegate file. 例如,当我开发UIWebView应用程序时,我只是将所有js和css文件复制到AppDelegate文件中的documents目录中。
NSString *jsFile2 = [documentDir stringByAppendingPathComponent:@"jquery-1.8.2.min.js"]; NSString *jsFile2Path = [[NSBundle mainBundle] pathForResource:@"jquery-1.8.2.min" ofType:@"js"]; [fileManager copyItemAtPath:jsFile2Path toPath:jsFile2 error:nil];
Then, you can directly add css and js files to your html like that; 然后,您可以像这样直接将css和js文件添加到html中; <script type='text/javascript' src='jquery.min.js'></script>
These are my concerns when I develop apps using UIWebView... 当我使用UIWebView开发应用程序时,这些就是我的担忧...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.