I Am Using Parse For Signup / Login Functionality In My iOS App, I Have A Small Issue In It. Please Help Me

Ask QuestionsI Am Using Parse For Signup / Login Functionality In My iOS App, I Have A Small Issue In It. Please Help Me
BIP admin Staff asked 2 years ago

if the user is registering first time in my app he has to signup otherwise he has to do just login.what is the condition we use to check whether user is new or existing user.

I’m following this link

2 Answers
BIP admin Staff answered 2 years ago

By using this you can get whole list of users and then you can compare

PFQuery *query = [PFUser query];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error)     {
    if (!error) {
        // The find succeeded. The first 100 objects are available in objects
        NSLog(@"%@", objects);
    } else {
        // Log details of the failure
        NSLog(@"Error: %@ %@", error, [error userInfo]);
    }
}];

 

BIP admin Staff answered 2 years ago

Parse has a complete run down of how to implement this into your project. Assuming your coding for objective c look at their documentation and their own tutorial for signing up or signing in users
https://parse.com/tutorials/login-and-signup-views