当前位置: 代码迷 >> Iphone >> iphone View其间跳转
  详细解决方案

iphone View其间跳转

热度:100   发布时间:2016-04-25 06:25:43.0
iphone View之间跳转
新建TestController界面,然后在别的界面中添加下面代码,跳转到TestController界面,
代码如下:
 //打开新窗口,关闭当前窗口    TestController *testController = [[TestController alloc] initWithNibName:@"TestController"bundle:nil];    [self.view.superview addSubview:testController.view];    [self.view removeFromSuperview];    //removeFromSuperview释放窗口,不用再写release,会自动管理的    [testController release]; 
  相关解决方案