解析 - 没有占位符,字段电子邮件在 SignUpViewController 中不起作用



我有一个问题在Parse与我的signUpView。

当我尝试使用LogInAndSignUpDemo代码(解析教程)时,它工作得很好。

对于我的项目,我在我的视图中有一个"登录"按钮,当用户选择"登录"时,我打开LogInviewController。如果用户没有账户,他可以"注册"。当他注册时,他有这个视图:mysignupview的图像我的问题是在这个视图上,因为我没有密码和电子邮件字段的占位符,我不能选择电子邮件字段。

我的代码:
-(IBAction) bouton_log_in_action:(id)sender
{
    if (![PFUser currentUser]) { // No user logged in
        // Create the log in view controller
        PFLogInViewController *logInViewController = [[PFLogInViewController alloc] init];
        [logInViewController setDelegate:self]; // Set ourselves as the delegate
        // Create the sign up view controller
        PFSignUpViewController *signUpViewController = [[PFSignUpViewController alloc] init];
        [signUpViewController setDelegate:self]; // Set ourselves as the delegate
        // Assign our sign up controller to be displayed from the login controller
        [logInViewController setSignUpController:signUpViewController]; 
        // Present the log in view controller
        [self presentViewController:logInViewController animated:YES completion:NULL];
    }
}

我不明白问题在哪里,因为我使用我在Parse文档中找到的代码…

我找到问题了。这是一个bug,会在1.2.21版本中修复…

相关内容

最新更新