tableview didse
2016-03-04 11:07
483 查看
tableview didse
tableview didselect去除点击效果
有两个:
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{// UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];// [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; (这种是没有点击后的阴影效果) UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; cell.selected = NO; (这种是点击的时候有效果,返回后效果消失)
cell.selectionStyle = UITableViewCellSelectionStyleNone;
tableview didselect去除点击效果
有两个:-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{// UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];// [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; (这种是没有点击后的阴影效果) UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; cell.selected = NO; (这种是点击的时候有效果,返回后效果消失)
tableviewCell中Cell不能被点击
cell.selectionStyle = UITableViewCellSelectionStyleNone;
相关文章推荐
- JavaFX之TableView的使用详解
- tableView上面空出20个像素的解决办法
- IOS 学习笔记 —— tableView 使用详解(二)
- TableView
- FRC与tableview的联合使用
- 报错-Type ViewController doesnot conform to protocol
- Plain, Group, Section, Index的区别
- StaticCell与PrototypeCell的区别
- 如何使用segue和didSelectRowAtIndexPath进行界面跳转
- iOS TableView学习目录
- TableView的基本使用
- 根据首字母查找单词
- 下拉放大tableView头视图
- 下拉 放大tableview上方 图片
- swift tableView deleteRowsAtIndexPaths
- TableView详细解释
- IOS-OC之高级控件TableView之一
- IOS-OC之高级控件TableView之二
- tableView的上拉刷新和下拉刷新
- 开发学习笔记--UItableView