呈现具有翻转卡效果的模态视图控制器(翻转+变换+翻译)

pix*_*eak 1 iphone objective-c ipad ios

我想做的有点类似于这个引用这个MLB应用程序的SO问题,除了网格之外,我使用基于UIScrollView的SwipeView.

这个问题的答案并不令人满意.好像你不需要手动编写整个动画序列.

有没有办法通过简单地使用presentViewController和内置的翻转过渡效果来做到这一点?

Vin*_*shi 8

Swift iOS 8

如果您想通过View控制器翻转视图控制器

    // Create a new view controller and pass suitable data.
    let storyboard = UIStoryboard(name: "Main", bundle: nil);

    // assign page view content loader
    let fBSignRegisterViewController = storyboard.instantiateViewControllerWithIdentifier("FBSignRegisterViewController")
        as? FBSignRegisterViewController;

    fBSignRegisterViewController?.modalTransitionStyle = UIModalTransitionStyle.FlipHorizontal

     self.presentViewController(fBSignRegisterViewController!, animated: true, completion: nil)
Run Code Online (Sandbox Code Playgroud)