导航栏phonegap插件
我想在基于phonegap 的ios 应用程序页面的“某些”顶部添加一个导航栏。我尝试过使用基于 JQM 的标题,但它们似乎不够稳定(即,当我滚动内容并跳回时它们会滚动)。我想使用使用phonegap插件的本机控件(如NativeControls)但是我找不到任何东西(据我所知NativeControls曾经有导航栏控件但它已经停止)有什么想法吗?建议?
其中一个选项是使用页面顶部的工具栏控件,但实际上没有办法在中间创建标题并在左侧和右侧创建按钮。此外,它也无法添加本机“后退”控件。
我已经研究了一段时间但没有找到任何东西。
更新:
我最终编写了自己的导航栏并通过phonegap将其连接到javascript调用
I would like to add a navigation bar at the top of "some" of my phonegap based ios application pages. I have tried using JQM based headers and they don't seem to be steady enough ( i.e. they scroll when I scroll the content and jump back). I would like to use a native control using a phonegap plugin ( like NativeControls) However I haven't been able to find anything ( as far as I can tell NativeControls used to have navbar control but it got discontinued) Any ideas? suggestions?
One of the options is to use a tool bar control on the top of the page but then it does not really have a way to create a title in the middle and buttons on left and right. Also it has no way of adding the native "back" control either.
I have been researching it for a while but haven't been able to find anything.
Update:
I ended up writing my own Navbar and hooking it to a javascript call through phonegap
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看这个经过编辑的 UINavigationbar 插件
https://groups.google.com/forum/?fromgroups#!topic /phonegap/XVru2zgB_yc
Checkout this edited plugin for UINavigationbar
https://groups.google.com/forum/?fromgroups#!topic/phonegap/XVru2zgB_yc
我也遇到过这个问题。也没有找到任何这方面的插件。
这就是我所做的:
I've had this problem too. Didn't find any plugins for this also.
This is what I did: