- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"activityTableViewCell";
activityTableViewCell *cell = (activityTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[activityTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
} cell.selectionStyle=UITableViewCellSelectionStyleNone;//设置cell点击效果 return cell;
}

  或者

//重写 cell 点击事件
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath
{
//当离开某行时,让某行的选中状态消失
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}

  

最新文章

  1. 初探物联网 - 基于Arduino的气象站和View and Data API的结合实例
  2. 测试函数用Return 返回值和用函数名返回值的区别
  3. Linux time命令
  4. SQL数据库基础(七)
  5. [leetcode] Contains Duplicate
  6. 0c-39-ARC下单对象内存管理
  7. Web前端新人笔记之HeightCharts基础
  8. 自定义PopupWindow动画效果
  9. C#开发客户端、JAVA和tomcat开发服务端
  10. 论山寨手机与Android联姻 【10】SmartPhone的通信机制
  11. tomcat dbcp 基于jndi当配置java.sql.SQLException: Already closed
  12. 移动开发中Fiddler的那些事儿 (转)
  13. jQuery图片切换插件jquery.cycle.js
  14. 前端之 CSS🤖
  15. Django troubleshootings
  16. Ocelot简易教程(六)之重写配置文件存储方式并优化响应数据
  17. CentOS安装jdk的三种方法
  18. java 定时任务之一 @Scheduled注解(第一种方法)
  19. koa文档参考
  20. PostgreSQL之连接数修改

热门文章

  1. phoenix 索引修复-基本流程
  2. SIP 解析
  3. W5200移植W5500驱动教程
  4. C#设计模式——解释器模式(Interpreter Pattern)
  5. c++学习--继承与派生
  6. hadoop 2.7.2 和 spark1.6 多节点安装
  7. iOS富文本
  8. C#如何分割多个空格分隔的字符串?
  9. Spring 事务处理
  10. [转载]python操作excel使用win32com