// 不让选中行
-(NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
return nil;
}
-(NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
return nil;
}
常用的一些属性
本文介绍了一种方法来禁用UITableView中行被选中的视觉效果。通过重写tableView:willSelectRowAtIndexPath:方法并返回nil,可以阻止行被选中。这是一种简单的实现方式,适用于需要自定义交互的应用场景。
1698

被折叠的 条评论
为什么被折叠?



