- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UIImageView *userHeaderImageView = [[UIImageView alloc]init];
userHeaderImageView.image = [UIImage imageNamed:@"point_red.png"];
userHeaderImageView.frame = CGRectMake(WIDTH - 65, 5, 60, 20);
[cell.textLabel addSubview:userHeaderImageView];
return cell;
}
其实就是新建一个UIImageView 之后添加在textLabel 就可以了。非常简单。