我的应用程序设置中有一个 viewController 允许用户自定义。我希望用户能够在入职屏幕中更改一些设置。有什么方法可以让我从 actionSheet 中有效地呈现这个 SettingsViewController 吗?我尝试在 actionSheet 视图中将其添加为子项,但操作本身不可点击。
let selection = SettingsController()
let actionS = UIAlertController(title: "select", message: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n", preferredStyle: .actionSheet)
selection.isFromOnboard = true
selection.onboardFrame = CGRect(x: 8, y: 8, width: actionS.view.bounds.size.width, height: 440)
actionS.addChild(selection)
actionS.view.addSubview(selection.view)
selection.didMove(toParent: self)
actionS.addAction(UIAlertAction(title: "Done", style: .default, handler: nil))