草庐IT

sAreFinished

全部标签

ios - 无法打开下一个 ViewController - *** 断言失败 - [UIKeyboardTaskQueue waitUntilAllTask​​sAreFinished]

我仅在登录过程中遇到此问题。在当前Controller中连接外部数据库(在添加用户名和密码之后)并且在获得响应后应用程序应该关闭当前Controller并应该打开下一个ViewController。我得到了正确的服务器响应。letpostString=“lgn=sedr&UNAME=\(userName)&PASSWORD=\(password)"letrequest=NSMutableURLRequest(URL:NSURL(string:url)!)request.HTTPMethod="POST";request.HTTPBody=postString.dataUsingEnco

ios - waitUntilAllTask​​sAreFinished 错误 Swift

按下提交按钮时,我的loginViewController中有此调用:lethttp=HTTPHelper()http.post("http://someUrl.com/Login/userEmail/\(username.text)/Pswd/\(userPass.text)",postCompleted:self.checkLogin)虽然我发送的checkLogin功能只是在执行:funccheckLogin(succeed:Bool,msg:String){if(succeed){self.performSegueWithIdentifier("logInTrue",sende

ios - waitUntilAllTask​​sAreFinished 错误 Swift

按下提交按钮时,我的loginViewController中有此调用:lethttp=HTTPHelper()http.post("http://someUrl.com/Login/userEmail/\(username.text)/Pswd/\(userPass.text)",postCompleted:self.checkLogin)虽然我发送的checkLogin功能只是在执行:funccheckLogin(succeed:Bool,msg:String){if(succeed){self.performSegueWithIdentifier("logInTrue",sende