Guest User

Untitled

a guest
May 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  2. static NSString *MyIdentifier = @"Parceiros";
  3.  
  4. UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
  5.  
  6. if (cell == nil) {
  7. cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease];
  8. UIImageView *parceirosImageView = [[UIImageView alloc] init];
  9. [parceirosImageView setTag:0];
  10. [cell addSubview: parceirosImageView];
  11. }
  12.  
  13. UIImage *parceirosImage = [UIImage imageNamed:[NSString stringWithFormat:@"head_parc_%d.png",[[lista objectAtIndex:indexPath.row] key]]];
  14.  
  15. [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
  16. [cell setAccessoryType:UITableViewCellAccessoryDetailDisclosureButton];
  17.  
  18. [parceirosImageView release];
  19.  
  20. return cell;
  21. }
Add Comment
Please, Sign In to add comment