//设置默认选中
NSIndexPath*defaultIndexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[self tableView:self.tableView didSelectRowAtIndexPath:defaultIndexPath];
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSInteger newRow = [indexPath row];
NSInteger oldRow = (self.lastIndexPath != nil) ? [self.lastIndexPath row] : -1;
if (newRow != oldRow)
{
CustomTableViewCell *newcell = [tableView cellForRowAtIndexPath:indexPath];
newcell.selectImage.hidden = NO;
CustomTableViewCell *oldCell = [tableView cellForRowAtIndexPath:self.lastIndexPath];
oldCell.selectImage.hidden = YES;
}
self.lastIndexPath = indexPath;
}