LoginViewController class codes and error page.
As you can see, I have identified. =/
一切正常,除了当我单击登录按钮时它不会让我进入下一页。但Xcode中的控制台显示我登录成功。
为什么一切都按照控制台进行,但模拟器不向我显示下一页?我是 swift 和 Objective-C 的新手,感谢您的理解。 ^^
最佳答案
这是因为您在成功登录后关闭了 View Controller 。您使用了
self.dismissViewControllerAnimated(true, completion: nil)
所以绝对不要导航到您应该像这样使用的其他页面:-
self.performSegueWithIdentifier("View controller name", sender: self)
关于ios - IBAction 不让我进入下一页? swift Xcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33769201/