How to fetch Data From Same Key in Parse iOS?

前端 未结 1 1435
忘了有多久
忘了有多久 2021-01-29 08:40

i am newbie in to Parse.com i try to Fetch data from Parse table with same key but value is Different like as

-(void)getdata
{
NSMutableArray *allObjects = [NSMu         


        
1条回答
  •  执笔经年
    2021-01-29 09:24

    You should be able to use whereKey:containedIn: to do this.

    PFQuery *query = [PFQuery queryWithClassName:@"MapInfo"];
    [query whereKey:@"Type" containedIn:@[@"Temopary", @"Business"]];
    

    You also have a typo in Temporary (unless Temporay is something) - not sure if that's intentional or not.

    0 讨论(0)
提交回复
热议问题