在我的 swift 应用程序中,我试图让点击按钮切换 View Controller 。这是我正在使用的代码:
presentViewController(pythTheoremViewController.self, animated: true, completion: nil)
这将返回错误“无法使用类型参数列表调用‘presentViewController’)pythTheoremViewController.Type, animated: Bool, completion: nil)
这是什么意思,我该如何解决?
最佳答案
如果您的 ViewController 实例是 pythTheoremViewController,请删除 self
关于ios - PresentViewController 故障排除,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30947793/