I will try to explain myself as best as I can. My app has a login & sign Up using the Parse API . after signing or logging the User see a page with a Button and a Text Field which he can write Numbers in it , let's say he write , for example: 1234.
the button job is to save the data from the text field Now i'm sure my Button method isn't the best way, but it's work :-)
NSString *whoIsTheUser = [PFUser currentUser];
NSString *phoneNumbers = phoneNumberField.text ;
NSString *fullData = [NSString stringWithFormat:@" %@ , %@", whoIsTheUser, phoneNumbers];
NSLog(@" %@, %@ ", whoIsTheUser, phoneNumbers);
PFObject *addValues= [PFObject objectWithClassName:@"phoneNumber"];
[addValues setObject: fullData forKey:@"numbers"];
[addValues saveInBackground];
So now what i'm having is the data saved to parse site under class of Numbers (forKey:@"numbers") and it's look like this :
<PFUser:hqExhaYaIN:(null)> {email = "[email protected]";username = buffo;} , 1234
what I'm trying to do is to add another button which going to check if theres another user who wrote the same numbers and then send an alert or do something . I have tried to read about the PFQuery but didn't find any solution. is it even possible to run Query in the classes name ? or maybe theres another way to do it ( within the parse site ) ? thank you so much for any suggestion !