I solved this with a segue animation where I need the sourceViewController to be in front of the destinationViewController. I had to remove sourceViewController in order to reinstall it. My code is as follows:
- (void) perform { UIViewController *sourceViewController = (UIViewController *) self.sourceViewController; UIViewController *destinationViewController = (UIViewController *) self.destinationViewController; UIView *parent = sourceViewController.view.superview; [sourceViewController.view removeFromSuperview]; [parent addSubview: destinationViewController.view]; [parent addSubview:sourceViewController.view];
Deminetix
source share