【问题标题】:horizontal flip animation on modal UIView模态 UIView 上的水平翻转动画
【发布时间】:2011-02-23 12:56:45
【问题描述】:

如何呈现带有水平翻转动画的模态视图(例如在导航控制器上推动视图控制器)? 我试过了,但它不起作用

[UIView beginAnimations:@"animation" context:nil];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.view cache:NO]; 
[self presentModalViewController:detailsViewController animated:NO];
[UIView commitAnimations];

谢谢!

【问题讨论】:

    标签: iphone animation uiview modal-dialog


    【解决方案1】:

    这就是你所需要的:

    detailsViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self presentModalViewController:detailsViewController animated:YES];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-05
      • 2011-07-05
      • 1970-01-01
      相关资源
      最近更新 更多