code_junkie

Programming test for hiring iPhone developers

Nov 13th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. - (UITableViewCell *)tableView:(UITableView *)tableView
  2. cellForRowAtIndexPath:(NSIndexPath *)indexPath
  3. {
  4. static NSString *cellIdentifier = @"MyDisclosureCell";
  5.  
  6. UITableViewCell *cell =
  7. [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
  8. if (cell == nil)
  9. {
  10. cell =
  11. [[[UITableViewCell alloc]
  12. initWithFrame:CGRectZero
  13. reuseIdentifier:cellIdentifier]
  14. autorelease];
  15. cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
  16. }
  17.  
  18. // Configure the cell
  19. cell.text = label;
  20.  
  21. return cell;
  22. }
Add Comment
Please, Sign In to add comment