我正在尝试重新创建效果,即我要呈现给用户iPhone的视图控制器下方的视图控制器位于所呈现的视图控制器的后面,以便您可以看到上一个VC的顶部。
@objc func showSteps() {
let vc = UIStoryboard(name: Storyboards.Main.rawValue, bundle: nil).instantiateViewController(withIdentifier: HowToSteps.four.stepAsString())
vc.modalPresentationStyle = .pageSheet // I've also tried the other enum options here to no effect
let nc = UINavigationController(rootViewController: vc)
present(nc, animated: true)
}
但是,所提供的视图控制器只是全屏显示,而不能看到其下面的视图控制器。
这里的任何帮助将不胜感激。谢谢!
编辑:
我要达到的效果: