ios - Using a BOOL method to filter uitableviewcells -


i trying use tutorial change uitableviewcell depending on if user has posted picture or not.i using parse.com data not rss feed. part have working except bool method see if picture exisit post. think of far

- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath object:(pfobject *)object{          if ([self hasimageatindexpath:indexpath]) {               return [self picturecellatindexpath:indexpath];       } else {             return [self picturecellatindexpath:indexpath];      } }   - (bool)hasimageatindexpath:(nsindexpath *)indexpath  {        pfobject *object = self.objects[indexpath.row];       pfquery *query = [pfquery querywithclassname:@"post"];      [query wherekey:@"haspicture" equalto:[nsnumber numberwithbool:yes]];       return true;  } 

i have been trying figure out quite sometime , appreciated, can put more code if need or answer unclear.


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -