Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. CategoryCellTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:@"poiCell"];
  2.  
  3. if (!cell)
  4. {
  5. cell = [[CategoryCellTableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"poiCell"];
  6. }
  7.  
  8. // Get current POI
  9. Rank * poi = [_data objectAtIndex:indexPath.row];
  10. cell.text.text = poi.name;
  11. cell.categoryImageView.image = [UIImage imageNamed:@"animals.png"];
  12.  
  13. UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"map"]];
  14. cell.accessoryView = imageView;
  15.  
  16. return cell;
  17.  
  18. - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath
  19. {
  20. NSLog(@"Accessory clicked");
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement