1.獲取所在行數
UITableView *table = (UITableView *)self.superview;
int numOfSelectedCell = [table indexPathForCell:self].row;
2.取消選中狀態
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
//some functions
......
// 取消選中狀態
[tableView deselectRowAtIndexPath:indexPath animated:NO];
}