Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 如何导航回以前加载的xib文件?_Objective C_Iphone Sdk 3.0_Uiviewcontroller_Xib - Fatal编程技术网

Objective c 如何导航回以前加载的xib文件?

Objective c 如何导航回以前加载的xib文件?,objective-c,iphone-sdk-3.0,uiviewcontroller,xib,Objective C,Iphone Sdk 3.0,Uiviewcontroller,Xib,在我的应用程序中,我有三个视图。最初,appDelegate打开了mainViewController的xib文件,我的应用程序模板上的预设设置包括一个flipsideViewController,点击信息按钮时会显示该文件 后来我决定包含另一个视图控制器和xib文件,名为CountySelectionViewController。xib文件有一个按钮,可通过以下按钮打开mainViewController的xib文件: MainViewController*controller=[[MainV

在我的应用程序中,我有三个视图。最初,
appDelegate
打开了
mainViewController
的xib文件,我的应用程序模板上的预设设置包括一个
flipsideViewController
,点击信息按钮时会显示该文件

后来我决定包含另一个视图控制器和xib文件,名为
CountySelectionViewController
。xib文件有一个按钮,可通过以下按钮打开
mainViewController
的xib文件:

MainViewController*controller=[[MainViewController alloc]initWithNibName:@“MainView”bundle:nil];
controller.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
[self-presentModalViewController:控制器已设置动画:是];
[控制器释放];

我是否应该使用相同的东西返回到
CountySelectionViewController
及其xib?还是有更好的方法?

我相信您正在寻找的是
解除ModalViewController激活:
--: