iphone - 呈现具有翻转卡片效果的模态视图 Controller (翻转 + 变换 + 平移)

标签 iphone ios objective-c ipad

我想做的有点类似于这个SO question引用此 MLB app ,除了不是网格,我使用 SwipeView它基于 UIScrollView。

这个问题的答案并不令人满意。似乎您不需要手动编写整个动画序列。

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

最佳答案

swift iOS 8

如果您想通过 View Controller 翻转 View Controller

    // 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)

关于iphone - 呈现具有翻转卡片效果的模态视图 Controller (翻转 + 变换 + 平移),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17891196/

相关文章:

iphone - 在iOS 5中移除iPhone启动画面

iphone - 自定义 UINavigationBar 背景

ios - iOS 13 中弹出窗口的阴影消失了

iphone - 在 Objective-C 中包装 C++ 库并不是隐藏 C++ 符号

iphone - 如何将仅限 iPad 的应用程序转换为通用应用程序?

ios - iOS-SKProductsResponse返回空产品数组

objective-c - 如何让键盘在显示前延迟大约 1/2 秒?

ios - 当应用程序已打开时,Segue 不执行快速操作(Xcode 9)

ios - 部分标题的 UICollectionReusableView 不起作用

objective-c - copyWithZone-无法识别的选择器发送到实例