每当我在Xcode 11测试版中使用segues (这里只是在两个VC之间使用刷卡手势)时,第二个VC就会弹出一张卡片:

我怎么才能阻止这一切?
发布于 2019-07-31 12:56:45
我看一下这篇文章。它很好地解释了为什么会发生这种情况,并给出了一个如何将其恢复到标准样式的示例。
发布于 2019-10-11 08:21:17
如果有人以编程方式执行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 )
}https://stackoverflow.com/questions/57291112
复制相似问题