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