Xcode11秒
Xcode 11 Segues
每当我在 Xcode 11 beta 中使用 segues 时(这里只是使用滑动手势在两个 VC 之间切换),第二个 VC 会弹出一张卡片:
我怎样才能避免这种情况?
我看看这篇文章。它很好地解释了为什么会发生这种情况,并举例说明了如何将其恢复为标准样式。
如果有人以编程方式进行 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 )
}
每当我在 Xcode 11 beta 中使用 segues 时(这里只是使用滑动手势在两个 VC 之间切换),第二个 VC 会弹出一张卡片:
我怎样才能避免这种情况?
我看看这篇文章。它很好地解释了为什么会发生这种情况,并举例说明了如何将其恢复为标准样式。
如果有人以编程方式进行 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 )
}