If I add view like this: [myView addSubview:viewController.view];
how can I dismiss it and get the old view. For example on button click
-(IBAction)dismiss{
//some code
}
thanks
If I add view like this: [myView addSubview:viewController.view];
how can I dismiss it and get the old view. For example on button click
-(IBAction)dismiss{
//some code
}
thanks
[viewController.view removeFromSuperview];
if ([viewController.view superView])
{
[viewController.view removeFromSuperview];
}