[英]Xcode 11 Segues
我看一下这篇文章。 它很好地解释了为什么会发生这种情况,并给出了如何将其还原为标准样式的示例。
如果有人以编程方式执行 segue,则代码需要类似于以下内容:
@objc func buttonClicked(_ sender: UIButton) {
let vc = ViewControllerB() //Destination controller
vc.modalPresentationStyle = .fullScreen // This line is needed now
vc.modalTransitionStyle = .flipHorizontal
self.present( vc, animated: true, completion: nil )
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.