gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 17:20:48 25 4
gpt4 key购买 nike

我想做的有点类似于这个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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com