如何在 tabbarcontroller 中连接基于 nib 的视图控制器和以编程方式创建的视图控制器?

发布于 2024-12-02 13:07:34 字数 80 浏览 8 评论 0原文

我创建了一个基于选项卡的应用程序,绘制了笔尖设计的视图和实用设计的视图。尽管类型不同,如何将它们连接到 UITabBarController 中?

I have created a tab based app drawing both nib-designed views and pragmatically designed views. How can I connect these into the UITabBarController despite being of different types?

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

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

发布评论

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

评论(1

污味仙女 2024-12-09 13:07:34

你是如何创建它的?

您必须已经分配它并且应该调用一些初始化方法。可能是 initWithStyle 吗?

一旦完成,并且所有子视图的创建、配置、布局和添加都完成后,您想要显示它。只要打电话

[self.navigationController pushViewController:yourProperlySetUpViewController animated:YES];

如果你做的其他一切都正确,那么它应该正确显示。

...我误解了你的问题吗?

How did you create it?

You must have allocated it and should have called some initialization method. Probably initWithStyle?

Once that is done, and all your creation, configuration, layouting and adding of subviews is done, you want to display it. Just call

[self.navigationController pushViewController:yourProperlySetUpViewController animated:YES];

If you did everything else right then it should be displayed properly.

... did I misunderstand your Question?

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