我正在使用 UITableview
(分组)。我在 xib 中禁用了用户交互。但是,我想启用一个单元格的交互。我怎样才能启用它?我使用了 [cell setUserInteractionEnabled:yes]
但它不起作用。 -tableView didselectrowindexpath
未被调用。任何人都可以建议我。提前致谢
最佳答案
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
//Configure the cell
if (indexPath.row == yourcell)
cell.userInteractionEnabled = YES;
}
希望对你有帮助
关于ios - 如何在 UITableView 单元格中设置启用的用户交互,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10533486/