Try this one..
[UIView beginAnimations:@"View Flip" context:nil];
[UIView setAnimationDuration:3.25];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:YES];
[self.navigationController pushViewController:SecondViewController animated:NO];
[UIView commitAnimations];
This is how to perform a card flipping animation in swift 3:
UIView.transition(from: frontImageView, to: backImageView, duration: 0.65, options: .transitionFlipFromRight, completion: nil)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.