UITableView Cell设置为禁止点击
来源:互联网 发布:课堂点名软件 编辑:程序博客网 时间:2024/05/01 22:04
方法一:
cell.userInteractionEnabled =NO;
方法二:
_tableView.allowsSelection=NO;
方法三:
1、cell.selectionStyle =UITableViewCellSelectionStyleNone;
2、didSelectRowAtIndexPath中不实现点击动作。
注意:如果cell上有添加Button,方法一和方法二Button的点击动作也会被忽略掉,方法三可以避免这个问题。
0 0
- UITableView Cell设置为禁止点击
- UITableview禁止cell点击事件
- UITableView设置cell为不可选?
- UITableView设置cell为不可选?
- UITableView设置cell为不可选?
- UITableView点击展开cell
- UITableView cell 点击没反应 但却设置了delegate
- 禁止编辑UITableView的Cell
- iOS UITableView(四) 为tableView设置头尾视图,改变cell的宽度,cell的缩进
- UITableView cell 选中变化设置
- UITableview cell之间间距设置
- UITableView的cell一些设置
- 点击UITableView的cell展开收缩
- 点击UITableView的cell展开收缩
- ios UITableView 获取点击cell对象
- 点击UITableView的cell展开收缩
- UITableView指定Cell的点击区域
- UITableView编辑模式可以点击Cell
- 关于node.js的学习01
- 如何彻底卸载Microsoft Office
- 框架实现的人员管理
- 关闭eclipse的console自动弹出功能
- Analyzing Linux kernel crash dumps with crash - The one tutorial that has it all
- UITableView Cell设置为禁止点击
- 第十二周 项目四 输出简单路径
- Android NDK学习 <四> Application.mk简介
- 第13周项目4-Floyd算法
- 第十三周项目二----Kruskal算法的验证
- 在重写某个类的equals方法时,一般这样来
- unity3D-游戏/AR/VR在线就业班 C#入门结构体学习笔记
- java代理机制分析
- 第十三周 项目1 Prim算法的验证