简体   繁体   中英

iOS Flip UIView without shadow

I use transitionFromView and .TransitionFlipFromLeft to replace a view to another view. Then I want to flip view without shadow above the views.

UIView.transitionFromView(
 self.postListView,
 toView:     self.userListView,
 duration:   0.8,
 options:    .TransitionFlipFromLeft,
 completion: nil
)

在此处输入图像描述

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM