2016-07-24 106 views
4

我用transitionFromView.TransitionFlipFromLeft將視圖替換爲另一個視圖。 然後我想在視圖之上翻轉視圖而沒有陰影。iOS不帶陰影的翻轉UIView

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

enter image description here

回答

0

試試這個..

[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]; 

這是如何在迅速3進行卡翻轉動畫:

UIView.transition(來源:frontImageView,

  to: backImageView, 
      duration: 0.65, 
      options: .transitionFlipFromRight, 
      completion: nil)