objective c - Can't return objects from User class in Parse.com iOS -


i trying return users user class uisearchbar , uitableview. reason can't retrieve objects user class in parse. have idea why can't objects, if there lot of users in user class?

here's how i'm doing it:

- (void)refresh {     pfquery *query = [pfquery querywithclassname:@"user"];     [query orderbyascending:@"createdat"];     query.limit = 1000;     [query findobjectsinbackgroundwithblock:^(nsarray *posts, nserror *error) {          if (!error) {             [_refreshcontrol endrefreshing];              [_people setarray:posts];             [_tableview reloaddata];             nslog(@"%@", posts);         } else {             nslog(@"error fetching users");         }     }]; } 

try replacing first line in method with: pfquery *query = [pfuser query]


Comments

Popular posts from this blog

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

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -