[英]Dismiss xib and go to a view controller in a tab bar controller app
In my app I'm using storyboard and XIB files. 在我的应用中,我正在使用情节提要和XIB文件。 I created a storyboard using tab bar controller, then by using a button I load a XIB file. 我使用标签栏控制器创建了一个情节提要,然后使用按钮加载了XIB文件。 Now I want that when I finished operation in XIB file to dismiss this XIB and go to a particular view controller (not the view controller who calls the XIB) embedded in my tab bar controller. 现在,我希望当我在XIB文件中完成操作时关闭该XIB并转到嵌入在我的标签栏控制器中的特定视图控制器(而不是调用XIB的视图控制器)。 There's a way to do that? 有办法做到吗?
你有没有尝试过:
[self.tabBarController setSelectedIndex:<#(NSUInteger)#>] [self.navigationController popToRootViewControllerAnimated:NO];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.