SFSafariViewController presentViewController动画 [英] SFSafariViewController presentViewController animation
本文介绍了SFSafariViewController presentViewController动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我调用 presentViewController(mySafariViewController,animated:true,completion:nil)
时,视图总是从右侧动画,就像导航控制器一样。
When I call presentViewController(mySafariViewController, animated: true, completion: nil)
, the view always animates from the right side like a navigation controller.
我试过调用 mySafariViewController.modalTransitionStyle = .CoverVertical
但它不起作用。
I tried calling mySafariViewController.modalTransitionStyle = .CoverVertical
but it doesn't work.
我该如何更改?
推荐答案
我必须调用 mySafariViewController.modalPresentationStyle =。 overFullScreen
(Swift 3语法)
I had to call mySafariViewController.modalPresentationStyle = .overFullScreen
(Swift 3 syntax)
这篇关于SFSafariViewController presentViewController动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文