Take the 2-minute tour ×

I have a problem, i need to make a query on 2 fields of the same class, im using:

PFQuery *fewWins = [PFQuery queryWithClassName:@"FlightsDB"];

    [fewWins whereKey:@"Name" containsString:searchText];

    PFQuery *lotsOfWins = [PFQuery queryWithClassName:@"FlightsDB"];

    [lotsOfWins whereKey:@"IATA" containsString:searchText];

The problem is that i get inconsistent results or no correct result a all, what am i missing?

Thanks in advance!

share|improve this question
There is not enough information to answer the question. This is two queries, not one. What kind of results are you getting? What results are you expecting? You're only showing the part where you construct some queries. How are you running them? –  bklimt Nov 21 '12 at 20:41
I found the solution already thanks :) i will give you a point. –  Bruno Vasconcelos Nov 22 '12 at 12:30

Your Answer



Browse other questions tagged or ask your own question.