我可以在我的项目中包含导航控制器吗?

发布于 2024-08-04 22:20:09 字数 109 浏览 1 评论 0原文

我目前正在做一个 iPhone 应用程序,我需要在我的第三个视图中包含一个导航控制器。有导航控制器的教程,但它在第一个视图本身中。当我将其包含在第三个视图中时,该视图未加载。任何人都可以帮我吗... 世宾

I am currently doing an iphone application in which i need to include a navigation controller in my 3rd view. there are tutorials for navigation controller but its in the first view itself. When i include it in the third view the view is not loading. can anyone help me please...
Shibin

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

俏︾媚 2024-08-11 22:20:09

当您添加第二个 ViewController 时,请执行以下操作:

[secondViewController.view addSubview:[navigationController view]];

或者您可以将其添加到 rootViewController 中。这实际上取决于您想要做什么。这就是为什么我要求一些代码。

When you add the second ViewController, then do:

[secondViewController.view addSubview:[navigationController view]];

Or you can add it to your rootViewController. It really depends on what you are trying to do. That's why I was asking for some code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文