Skip to content

Instantly share code, notes, and snippets.

@jeremytregunna
Forked from anonymous/gist:4730538
Last active December 12, 2015 06:38
Show Gist options
  • Save jeremytregunna/4730568 to your computer and use it in GitHub Desktop.
Save jeremytregunna/4730568 to your computer and use it in GitHub Desktop.
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [self.tableView dequeueReusableCellWithIdentifier:@"Cell"];
NSLog(@"count prieteni: %lu",(unsigned long)[prieteni_user count]);
NSLog(@"prieteni useri: %@",prieteni_user);
NSLog(@"temp: %@",temp);
cell.textLabel.text = [foo objectAtIndex:indexPath.row];
return cell;
}
//DIDLOAD
{............
prieteni_user = [replyString3 componentsSeparatedByString:@"*~*"];
NSMutableArray* tempArray = [NSMutableArray array];
[prieteni_user enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL* stop) { [tempArray addObject:obj]; }];
foo = [tempArray copy];
[super viewDidLoad];
// Do any additional setup after loading the view.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment