parse.com. take names by filters objective c -


http://s012.radikal.ru/i319/1504/91/9f4190f18b64.png

i have 3 strings filters , need receive name of lens using filters.

 pfquery *query = [pfquery querywithclassname:@"lences"];     [query wherekey:@"brand" equalto:_brandstring];     [query findobjectsinbackgroundwithblock:^(nsarray *objects, nserror *error){         nslog(@"%@", objects); 

i make code 1 filter "brand" , need add 2 (type , aperture) receive names of lances

to form conjunction of conditions, apply them single query...

pfquery *query = [pfquery querywithclassname:@"lences"]; [query wherekey:@"brand" equalto:_brandstring]; [query wherekey:@"type" equalto:_typestring]; [query wherekey:@"aperture" equalto:_aperturestring]; [query findobjectsinbackgroundwithblock:^(nsarray *objects, nserror *error) {     nslog(@"%@", objects); }]; 

only objects matching 3 conditions returned.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -