Categories: CrossApp 教程

CATableViewDelegate

类说明

CATableView的代理类,用于响应拖动和点击事件。

CATableViewDelegate 方法(点击查看方法介绍)

方法 说明
tableViewDidSelectRowAtIndexPath 选中cell时触发
tableViewDidDeselectRowAtIndexPath 取消选择时触发

CATableViewDelegate 方法说明

virtual void tableViewDidSelectRowAtIndexPath(CATableView* table, unsigned int section, unsigned int row)

返回值:void

参数:

类型 参数名 说明
CATableView* table 当前tableView
unsigned int section cell所属的区域
unsigned int row cell所在行数

解释:选中cell时触发

virtual void tableViewDidDeselectRowAtIndexPath(CATableView* table, unsigned int section, unsigned int row)

返回值:void

参数:

类型 参数名 说明
CATableView* table 当前tableView
unsigned int section cell所属的区域
unsigned int row cell所在行数

解释:取消选择时触发

andy

前端小白,在Web176教程网这个平台跟大家一起学习,加油!

Share
Published by
andy

Recent Posts

自定义指令:聊聊vue中的自定义指令应用法则

今天我们来聊聊vue中的自定义…

5 天 ago

聊聊Vue中@click.stop和@click.prevent

一起来学下聊聊Vue中@cli…

2 周 ago

Nginx 基本操作:启动、停止、重启命令。

我们来学习Nginx基础操作:…

2 周 ago

Vue3:手动清理keep-alive组件缓存的方法

Vue3中手动清理keep-a…

3 周 ago

聊聊React和Vue组件更新的实现及区别

React 和 Vue 都是当…

3 周 ago