IOS开发之页面跳转
非常有用的一段代码,在IOS开发中2个View页面之间跳转。记录下来。
1 -(IBAction)NextPage:(id)sender 2 { 3 Page_Second *control = [[[Page_Second alloc] initWithNibName:@"Page_Second" bundle:nil] autorelease]; //定义要跳转到页面 4 [self.view.window setRootViewController:control]; 5 }