if (self.view.superview == nil) {
[singleDollController.view removeFromSuperview];
[self.view insertSubview:rootViewController.view atIndex:0];
}
else {
removeFromSuperview];
atIndex:0];
}
视图间的跳转
1. AddInfo *control = [[AddInfo alloc] init];
[self presentModalViewController:control animated:YES];
[control release];
描述:通过事件进行跳转
[self dismissModalViewControllerAnimated:YES];
描述:通过事件进行返回。
2. [self.navigationController pushViewController:subTableViewController animated:YES];
描述:通过 NSNavigationBar 进行跳转
[self.navigationController popViewControllerAnimated:YES];
描述:在子视图返回到上级视图
标签:control,控制器,self,iOS,视图,跳转,YES,view From: https://blog.51cto.com/u_548275/6238198