Ok, so, I'm just beginning my study into iPhone programming, and had a pretty basic question.
Heres a section of code using table views I just can't get my head around:
My question may be pretty basic, but why exactly does that change cell's text?
Any help would be great! Thank you!
Heres a section of code using table views I just can't get my head around:
Code:
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
NSString *name = [[contacts objectAtIndex: indexPath.row] valueForKey: @"Name"];
UILabel *label = [cell textLabel];
label.text = name;
My question may be pretty basic, but why exactly does that change cell's text?
Any help would be great! Thank you!