Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- static NSString *MyIdentifier = @"Parceiros";
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
- if (cell == nil) {
- cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease];
- UIImageView *parceirosImageView = [[UIImageView alloc] init];
- [parceirosImageView setTag:0];
- [cell addSubview: parceirosImageView];
- }
- UIImage *parceirosImage = [UIImage imageNamed:[NSString stringWithFormat:@"head_parc_%d.png",[[lista objectAtIndex:indexPath.row] key]]];
- [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
- [cell setAccessoryType:UITableViewCellAccessoryDetailDisclosureButton];
- [parceirosImageView release];
- return cell;
- }
Add Comment
Please, Sign In to add comment