ios - how to do a compound query in pfquerytableviewcontroller -


I am using representative query for table method in my pfquerytableviewcontroller such as:

  - (PfQulator *) queryForrestable {Returns [find self]; } - (PFQulator *) getMyQuery {PFQuery * query = [Foller relation query]; [Query is where: @ "followers" equal: user]; NSArray * foundFollowers = [query search object]; NSMutableArray * follower = [[NSMutableArray alloc] init]; For (followers rehabilitation * foundFollowers in a passenger) {[AddObject: aFollower.user]; } PFQuery * query1 = [Gassetts query]; [Query1 where: @ "user" lies in: followers]; [Query 1 includes: @ "user"]; [Query1 Ordering Order: @ "Created"]; Return query1; }  

When I do a simple query:

  - (PFQuery *) queryForTable {PFQuery * query = [PFQuery query worldnamename: self.parseClassName]; [Queries include: @ "gaUser"]; If (self.objects.count == 0) {query.cachePolicy = kPFCachePolicyCacheThenNetwork; } [Query order bypassing: @ "created"]; Return query; }  

This works with no problem how can I use my query which first selects all users?

I'm not sure that I understand the question completely, so if I am wrong then please Correct Why can not you keep this code in a queryfotable?

PFQuery * query = [later relational query]; [Query where: @ "Followers" equal TO: user];

  NSArray * foundFollowers = [query search object]; NSMutableArray * follower = [[NSMutableArray alloc] init]; For (followers rehabilitation * foundFollowers in a passenger) {[AddObject: aFollower.user]; } PFQuery * query1 = [Gassetts query]; [Query1 where: @ "user" lies in: followers]; [Query 1 includes: @ "user"]; [Query1 Ordering Order: @ "Created"]; Return query1;  

What is the completion / refund for the table?


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -