I have the following code in UIStoryBoardSegue to twist a push segment.
(void) perform { UIViewController *src = (UIViewController *) self.sourceViewController; UIViewController *dst = (UIViewController *) self.destinationViewController; [UIView transitionWithView:src.navigationController.view duration:1 options:UIViewAnimationOptionCurveEaseInOut | UIViewAnimationOptionTransitionCurlUp animations:^{ [src.navigationController pushViewController:dst animated:NO]; } completion:NULL]; }
It works fine, but when I click the back buttons in the application, it slides back, not curls. Since this is a push, I need to output the current view controller instead of adding another segment.
How do I make a curl?
ios uistoryboardsegue
Ana
source share