在我的图像中,我的第一个Tabbar是HomeViewController,第二个Tabbar是CameraViewController。对Tabbarcontroller来说,正确的方法是什么?您可以看到读行,我试着对它进行检索,但是我总是在HomeViewController中获得后退按钮,它显示的很奇怪,比如没有显示导航名。在CameraViewController中,我隐藏用于使用相机按钮的Tabbar。我试着像这个程序一样使用segue。
[self performSegueWithIdentifier:@"sample" sender:sender]但它不能正常工作。这有可能对TabbarController产生影响吗?

发布于 2016-03-16 08:32:49
你不能打电话
[self performSegueWithIdentifier:@"sample" sender:sender]因为你已经在TabBarController了。您可以实现自定义流。按下“后退”按钮,只需显示TabBar并更改选定的tabBarItem,例如…
update使用
[self.tabBarController setSelectedIndex:0];https://stackoverflow.com/questions/36029798
复制相似问题