1

我和我的开发者儿子(初学者但没有经验)一起使用 PhoneGap 开发适用于 iOS 和 Android 的混合应用程序。我们面临的问题是当我们在 InAppBrowser 中显示一些特定的内容/页面时。iOS在页面底部有导航栏,Android在页面顶部。我们想要一致的体验,因此希望两个版本的导航控件都位于顶部。

我就此与一些有经验的人进行了交谈,他们告诉我我们无法更改 InAppBrowser 元素的属性。例如,我们可以完全隐藏/显示导航栏,但对于 iOS,我们不能将其放置在顶部,也不能更改文本,例如导航标签从 DONE 到 Back。

有没有解决方案来实现这一点。非常感谢您的帮助。

4

1 回答 1

0

Well if you want to change it you will need to change the plugin. The current version seem to be here: https://github.com/apache/cordova-plugin-inappbrowser

Just fork it and use it to build your app. You will need have a Mac computer to build for iOS though. You will find instructions on building applications on your computer on PhoneGap page (see also instructions for InAppBrowser, but note that you would have to pass an URL to plugin add command).

Note however that consistent experience on all systems is not really possible. For example Android already has a back button so it is not crucial to have it for users on Android. Experience in many cases should be consistent through all applications on the same system, not within a single application.

于 2013-12-18T12:20:13.203 回答