分析存储用户会话在哪里?

代码为login:

[PFUser logInWithUsernameInBackground:self.userTextField.text password:self.passwordTextField.text block:^(PFUser *user, NSError *error) { if (user) { [self performSegueWithIdentifier:@"LoginSuccesful" sender:self]; } else { NSInteger code = [error code]; NSString *message; if (code == 100) { message = @"No Internet Connection"; } else if(code == 101) { message = @"Wrong credentials"; } UIAlertView *errorAlertView = [[UIAlertView alloc] initWithTitle:@"Error" message:message delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil, nil]; [errorAlertView show]; } }]; 

我们可以检查用户是否login

 if ([PFUser currentUser]) { // user is logged } 

这意味着PFUser logInWithUsernameInBackground:密码:下载用户数据并将其存储在iOS的某处,我不知道它是否在plist或其他文件,或者会话。

Parse Framework在iOS存储用户login会话在哪里?

我对使用Parse的一个应用程序进行了一些探索,发现了以下内容。

在这里输入图像说明

Library/Private Documents/Parse里面有一个当前的用户文件,它包含你的用户的JSON表示。