1. 程式人生 > >取消tableViewCell的選中狀態

取消tableViewCell的選中狀態

    UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
    cell.selected = NO;
    [self.tableView deselectRowAtIndexPath:indexPath animated:YES];