在我的快速应用程序中,我试图使它的按钮点击切换视图控制器。这是我正在使用的代码:
presentViewController(pythTheoremViewController.self, animated: true, completion: nil)这将返回错误“不能使用类型的参数列表调用'presentViewController‘)pythTheoremViewController.Type,动画: Bool,完成: nil)
这意味着什么,我该如何解决呢?
发布于 2015-06-19 21:56:31
如果您的ViewController实例是pythTheoremViewController,请删除
发布于 2015-06-19 22:01:59
为这个愚蠢的问题道歉!当我应该在视图控制器名称之后使用()时,我使用了自动更正.self选项。
https://stackoverflow.com/questions/30947793
复制相似问题