仅使用代码来编程“当前上下文中的” seung

问题描述 投票:-1回答:1

下面的我的代码显示了在类之间进行排序时的状态栏。我问了一个类似的问题,那个人说要把“介绍”改为:“在当前情况下”。问题是我没有使用情节提要。所以我不知道如何仅用代码来做到这一点。

enter image description here

 @objc func moveRight() {
let vc = ViewController()
self.present(vc, animated: true)}
swift segue func presentviewcontroller
1个回答
0
投票

喜欢这个:

let vc = ViewController()
vc.modalPresentationStyle = .overCurrentContext // actually .fullScreen would be better
self.present(vc, animated: true)}
© www.soinside.com 2019 - 2024. All rights reserved.