//让单元格无法被选中
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *cellIdetify = @"cell";
    UITableViewCell *tvCell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdetify] autorelease];  
    tvCell.selectionStyle = UITableViewCellSelectionStyleGray;
    tvCell.selectionStyle = NO;    //让单元格无法被选中    此句即可

    return tvCell;
}

 

相关文章:

  • 2021-11-11
  • 2022-12-23
  • 2021-08-12
  • 2021-06-29
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-06-15
猜你喜欢
  • 2022-02-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2021-11-19
相关资源
相似解决方案