0
我想使用parse.com在iOS中登錄。但是,在登錄過程中,每次都會發生錯誤。我找到了解決方案,但錯誤仍在繼續。我的代碼是:解析錯誤:無效的登錄參數(代碼:101,版本:1.10.0)
if (![self.phonnumber.text isEqual: @""]){
if(![self.emailtxt.text isEqual: @""])
{
NSString *userEmail = @"[email protected]";//self.emailtxt.text;
NSString *userPassword = @"123";//self.phonnumber.text;
[PFUser logInWithUsernameInBackground:userEmail
password:userPassword block:^(PFUser *user, NSError *error)
{
if (!error) {
NSLog(@"succes");
} else {
// The login failed. Check error to see why.
}
}];
}
用戶名密鑰應該是@「[email protected]」在解析用戶 –
我只是通過電子郵件和密碼。 –
http://i.stack.imgur.com/KQfRM.png –