如何在 tabbarcontroller 中连接基于 nib 的视图控制器和以编程方式创建的视图控制器?
我创建了一个基于选项卡的应用程序,绘制了笔尖设计的视图和实用设计的视图。尽管类型不同,如何将它们连接到 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
你是如何创建它的?
您必须已经分配它并且应该调用一些初始化方法。可能是 initWithStyle 吗?
一旦完成,并且所有子视图的创建、配置、布局和添加都完成后,您想要显示它。只要打电话
如果你做的其他一切都正确,那么它应该正确显示。
...我误解了你的问题吗?
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
If you did everything else right then it should be displayed properly.
... did I misunderstand your Question?