IOS Parse - Pointer -
i have class called subcategory column named category pointer. trying phone call , store pointer specific row. nil beingness stored self.categoryname.text? looking.
here code:
pfquery *query = [pfquery querywithclassname:@"subcategory"]; [query wherekey:@"user" equalto:[pfuser currentuser]]; [query wherekey:@"name" equalto:@"food"]; [query findobjectsinbackgroundwithblock:^(nsarray *objects, nserror *error) { (pfobject *object in objects) { self.subcategoryname.text = object[@"name"]; self.categoryname.text = object[@"category"]; } }];
use query this
[query wherekey:@"user" equalto:[pfuser currentuser]]; [query includekey:@"food"];
ios
No comments:
Post a Comment