如果我添加这样的视图:[myView addSubview:viewController.view];
如何解除它并获得旧视图。例如,点击按钮
-(IBAction)dismiss{
//some code
}
感谢
答案 0 :(得分:3)
[viewController.view removeFromSuperview];
答案 1 :(得分:1)
if ([viewController.view superView])
{
[viewController.view removeFromSuperview];
}