如何从不同的 TabBar 项目调用相同的 ViewController?
我开发了一个ViewController,它根据输入参数显示不同的数据。我想使用 tabBar 界面,并通过将不同选项卡传递给不同参数来调用相同的 ViewController。 我可以这样做吗?如果我在 tabBar
项中指定 ViewController 的 NIB,则会出现错误。
你能帮我吗?
提前致谢。
I've developed a ViewController that shows different data according to the input parameter. I would like to use a tabBar
interface and call the same ViewController from different tabs by passing them to different parameters.
Can I do this? I get errors if I specify the ViewController's NIB in tabBar
item.
Can you help me please?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建 ViewController 的两个不同实例:
Create two different instances of your ViewController: