【问题标题】:Present a modal view flipping a view in iPad在 iPad 中呈现模式视图翻转视图
【发布时间】:2012-05-03 18:07:55
【问题描述】:

我在 iPad 的视图中心有一个矩形视图。当我按下按钮时,我希望该矩形视图翻转并显示带有一些信息的模态视图。怎样才能做到这一点,而不是翻转整个主视图?

提前致谢。

【问题讨论】:

    标签: objective-c ipad modalviewcontroller presentmodalviewcontroller


    【解决方案1】:

    【讨论】:

    • 我知道所有的过渡样式...但我想要实现的是翻转单个子视图并在另一侧显示模态视图...
    【解决方案2】:

    我知道了!

    这是我使用的解决方案:

    [UIView transitionWithView:self.tutorialView
                      duration:0.4
                       options:UIViewAnimationOptionTransitionFlipFromLeft | UIViewAnimationOptionCurveEaseInOut
                    animations:^{
                        [[[self.tutorialView subviews] objectAtIndex:0] removeFromSuperview],
                        [self.tutorialView addSubview:infoView.view];
                    }
                    completion:^(BOOL finished){
    
                    }];
    

    【讨论】:

      猜你喜欢
      • 2011-01-20
      • 2014-11-25
      • 1970-01-01
      • 1970-01-01
      • 2012-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多