在didSelectRowAtIndexPath 里面取cell的方法
2024-08-28 22:41:23
1、选中了tableview的cell的某一行调用的代理方法
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
}
2、获取cell
2.1 系统cell
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
2.2 自定义cell
- 如果你是自定义的话就用下面这种
MyCustomCell *cell = (MyCustomCell *)[tableView cellForRowAtIndexPath:indexPath];
最新文章
- WebForm session,cookies
- catalog、scheme区别
- spring Integration服务总线
- javaweb 在netbeans 上的部署问题
- DevSecOps 实施篇!系列(二)
- NET笔记——Delegate
- C51 库函数(1)
- 分布式文件系统及FastDFS
- dede的pagelist标签的listsize数字属性详解
- Linux Shell 文件描述符 及 stdin stdout stderr 重定向
- 一次SQL慢查询的优化处理
- Python_排版函数
- ssm框架如果想要跨域请求,cors跨域
- 初读";Thinking in Java";读书笔记之第四章 ---控制执行流程
- debian下 Hadoop 1.0.4 集群配置及运行WordCount
- java基础概念整理(三)
- Windows下安装Oracle Database 12c Release 1(12.1.0.2.0) - Enterprise Edition
- POJ 2728 Desert King(最优比率生成树 01分数规划)
- python import 与 from ... import ...
- CSS 优先级和特指度