Created
February 7, 2013 12:09
-
-
Save anonymous/4730538 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
if(first_time){n=0;} | |
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:n]; | |
n++; if(n==[prieteni_user count]){first_time =true;}else{first_time=false;} | |
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