CAListViewDataSource

类说明

CAListView的数据代理

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

方法说明
numberOfIndexcell的数量
listViewHeightForIndexcell的高度
listViewCellAtIndex生成cell 
listViewWillDisplayCellAtIndex回调当前将要显示的list

CAListView 方法说明

virtual unsigned int numberOfIndex(CAListView *listView) = 0;

返回值:unsigned int 

参数:

类型参数名说明
CAListView*listView当前的listView

解释:cell的数量

virtual unsigned int listViewHeightForIndex(CAListView *listView, unsigned int index) = 0;

返回值:unsigned int

参数:

类型参数名说明
CAListView*listView当前的listView
unsigned int indexcell的索引值

解释:cell的高度

virtual CAListViewCell* listViewCellAtIndex(CAListView *listView, const DSize& cellSize, unsigned int index) = 0;

返回值:CAListViewCell*

参数:

类型参数名说明
CAListView*listView当前的listView
const DSize&cellSizecell的size
unsigned int indexcell的索引值

解释:生成cell 

virtual void listViewWillDisplayCellAtIndex(CAListView* table, CAListViewCell* cell, unsigned int index) {};

返回值:void

参数:

类型参数名说明
CAListView*tableListView的table
CAListView*listView当前的listView
unsigned int indexcell的索引值

解释:回调当前将要显示的list

作者:admin,如若转载,请注明出处:https://www.web176.com/crossapp/10205.html

(0)
打赏 支付宝 支付宝 微信 微信
adminadmin
上一篇 2023年2月21日 下午2:50
下一篇 2023年2月21日 下午2:50

相关推荐

发表回复

登录后才能评论