gpt4 book ai didi

ios - IBM Worklight - 是否可以将 UINavigationController 添加为起始 native 页面?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:20:42 25 4
gpt4 key购买 nike

我正在尝试将基于导航的 iOS 应用程序集成到 IBM worklight 中。但是,我无法将 UINavigationController 添加为其第一个 native 页面。在教程中,他们只解释了集成一个普通的 UIViewController。由于 UINavigationControllerUIViewController 的子类,难道不应该也能集成它吗?有人可以告诉我是否可以使用 "WL.NativePage.show" API 集成 navigationcontroller。 目前,我无法弄清楚如何为 navigationcontroller 对象设置 rootviewcontroller

最佳答案

我不知道您提出请求的动机,因此这可能无法回答您的问题,但它确实提供了另一种选择。


请参阅 Anton Aleksandrov 的以下博客文章。在其中,Anton 解释了如何在您的 Worklight Hybrid 应用程序中使用 native 控件,在您的案例中, native 控件也可以是导航控件。也就是说,无需在“ native 页面”中执行此操作。

本质上,您仍在使用 HTML 文件作为应用程序的“起始页”,但缩小了 Cordova WebView,例如,允许您在顶部和底部添加、放置 native 控件。您可以在此处放置 native 导航控件。

博文:[iOS] Combining native and web controls in Cordova based applications

关于ios - IBM Worklight - 是否可以将 UINavigationController 添加为起始 native 页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18606824/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com