tableView里选中一行cell其它不选中的方法

方法1:table

#pragma mark--选中状态select

 

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {方法

    GASSelectNextTableViewCell *cell = (GASSelectNextTableViewCell *)[tableView cellForRowAtIndexPath:indexPath];tab

    cell.selectedBtn.selected  = YES;di

    

    }void

-(void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath {index

    GASSelectNextTableViewCell *cell = (GASSelectNextTableViewCell *)[tableView cellForRowAtIndexPath:indexPath];ab

    cell.selectedBtn.selected  = NO;

 

}

方法2:

1.定义一个全局的Button

2.让后让他选中

相关文章
相关标签/搜索