【问题标题】:iOS Flip UIView without shadowiOS翻转UIView没有阴影
【发布时间】:2016-11-27 16:18:48
【问题描述】:

我使用transitionFromView 和.TransitionFlipFromLeft 将一个视图替换为另一个视图。 然后我想翻转视图上方没有阴影的视图。

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

【问题讨论】:

    标签: ios swift uiview


    【解决方案1】:

    试试这个..

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

    这是在swift 3中如何执行翻牌动画:

    UIView.transition(来自:frontImageView,

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

    【讨论】:

      猜你喜欢
      • 2021-02-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多