带有 jqTouch 的原生 UIControls
在尝试了一堆 javascript 标签栏(大多数在使用表单时失败)之后,我决定采用原生可能是一个好主意。
有人知道如何在 jqTouch 应用程序中合并本机 UIControls(选项卡栏和标题)。我仍然需要保留对标题中“后退”和“信息”按钮的控制。
谢谢! 格伦
After experimenting with a bunch of javascript tabbars (most fail when using forms), i've decided it might be a good idea to go native.
Would anyone know how to incorporate native UIControls (tabbar & header) in a jqTouch app. I'd still need to retain control of the 'back' and 'info' buttons in the header.
Thanks!
Glen
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此时您需要确定的是混合方法的好处是什么?在花费所有时间编写本机代码来支持导航、选项卡和标题栏之后,您将编写相当多的代码。
然后尝试以某种方式将该代码组合在一起以连接回 Phonegap UIWebview,恕我直言,它会变得过于复杂......但是它可以完成。
我建议您首先编写本机应用程序并使其正常运行,然后将该代码集成回 PhoneGap 应用程序委托中
这是一个 完整教程 这将是一个很好的起点
What you need to determine at this point is what is the benefit of the hybrid approach? After you spend all of the time writing the native code to support the navigation and the tabs and the header bar you will have written a fair bit of code.
Then attempting to put that code together in a way to interface back to the Phonegap UIWebview it will, IMHO, become overly complex... however it can be done.
I woud suggest you first write the native application and get it functioning and then integrate that code back in to the PhoneGap Applicate Delegate
Here is a complete tutorial that will be a good starting point
我已经找到了实现此功能的最佳方法,并认为我应该分享代码。
这就是组合:jQTouch + Phonegap = Native Tabbar,它将与 jQTouch 协同工作。 IE。当您单击选项卡栏图标时,它将带您进入相应的 jQTouch 页面。
<代码>
<代码>
I've worked out the best method to get this working, and thought I'd share the code.
So this is the combo: jQTouch + Phonegap = Native Tabbar that will work in unison with jQTouch. Ie. When you click a tabbar icon, it will take you to the appropriate jQTouch page.