我现在用的是PFSignUpViewController
但shouldBeginSignUp
委托方法不会被调用。我要检查之前,它签署了用户名(长度...)。为此该方法必须工作... 这里是我的代码:委托方法shouldBeginSignUp不叫 - 解析
class TableViewController: PFQueryTableViewController, PFLogInViewControllerDelegate, PFSignUpViewControllerDelegate {
var logInViewController: PFLogInViewController! = LoginViewController()
var signUpViewController: PFSignUpViewController! = SignUpViewController()
override func viewDidLoad() {
super.viewDidLoad()
self.logInViewController.delegate = self
self.signUpViewController.delegate = self
self.logInViewController.signUpController = self.signUpViewController
}
func signUpViewController(signUpController: PFSignUpViewController, shouldBeginSignUp info: [NSObject : AnyObject]) -> Bool {
print("shouldBeginSignUp...") // not called...
return false
}
还是无解 – SteffenK