Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (UITableViewCell *)tableView:(UITableView *)tableView
- cellForRowAtIndexPath:(NSIndexPath *)indexPath
- {
- static NSString *MyIdentifier = @"MyIdentifier";
- UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
- if (cell == nil)
- {
- cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1
- reuseIdentifier:MyIdentifier];
- }
- cell.textLabel.text =[listTableArray objectAtIndex:indexPath.row];
- cell.textLabel.textColor=[UIColor grayColor];
- cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
- cell.detailTextLabel.text=@"4mile";
- return cell;
- }
- UIImageView *accessoryView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)];
- accessoryView.image=[UIImage imageNamed:@"list.png"];
- cell.accessoryView = accessoryView;
- UIImageView *accessoryView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)];
- accessoryView.image=[UIImage imageNamed:@"list.png"];
- [cell.contentView addSubview:accessoryView];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement