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

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -