Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CategoryCellTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:@"poiCell"];
- if (!cell)
- {
- cell = [[CategoryCellTableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"poiCell"];
- }
- // Get current POI
- Rank * poi = [_data objectAtIndex:indexPath.row];
- cell.text.text = poi.name;
- cell.categoryImageView.image = [UIImage imageNamed:@"animals.png"];
- UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"map"]];
- cell.accessoryView = imageView;
- return cell;
- - (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath
- {
- NSLog(@"Accessory clicked");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement