Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BFCApiManager *apiManager = [BFCApiManager sharedInstance];
- __weak __typeof(self) weakSelf = self;
- [apiManager getListOfUsersWithParameters:nil
- success:^(AFHTTPRequestOperation *operation, id JSON) {
- users = [[NSMutableArray alloc] init];
- for (int i = 0; i < [apiManager.users count]; i++) {
- BFCUser *user = [[BFCUser alloc] initWithInfo:[apiManager.users objectAtIndex:i]];
- [users addObject:user];
- }
- [weakSelf.usersTableView reloadData];
- }
- failure:^(AFHTTPRequestOperation *operation, NSError *error) {
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement