取消UITableViewCell的选中状态
2015-09-22 10:54
585 查看
设置cell的选中属性为如下就没有点击效果了
cell.selectionStyle = UITableViewCellSelectionStyleNone;
只需要在
全选
复制放进笔记
cell.selectionStyle = UITableViewCellSelectionStyleNone;
只需要在
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath中加入一行代码就可以了
[tableView deselectRowAtIndexPath:indexPath animated:YES];然后再写你其他代码就可以了
全选
复制放进笔记
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [tableView deselectRowAtIndexPath:indexPath animated:YES];// 取消选中 //其他代码 }
相关文章推荐
- Use procexp.exe in sysinernalssuite to analyze process runing info
- BZOJ 2079 [Poi2010]Guilds 图
- Thrift的required和optional源码分析
- 修改UISearchBar的Cancel按钮为中文等本地化问题
- Ant编译打jar包 build.xml
- Xcode Build Search Paths设置
- UITableViewCell 中的单选控制 UITableViewCellAccessoryCheckmark
- 对文本框内容进行实时判断
- request.getRemoteAddr()获取的值为0:0:0:0:0:0:0:1
- 自学IOS(一)UI之Hello World与加法计算器
- keyChain保存uuid实现唯一标识
- iOS开发之UI_UIScrollView(下)
- NGUI基本控件制作
- comparison of floating point numbers with equality operator. possible loss of precision while rounding values
- 我的Android进阶之旅------>adbd cannot run as root in production builds 的解决方法
- does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE
- (绝对有用)iOS获取UUID,并使用keychain存储
- Java String与StringBuffer、StringBuilder的区别
- [UI基础]day01(代码)
- Servlet生命周期方法,request.getRequestDispatcher