当前位置:K88软件开发文章中心编程语言APP编程CrossApp → 文章内容

CAListViewDataSource

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-23 13:51:54

由 ?﹏???ζ???﹏﹏? 创建, 最后一次修改 2016-08-31 类说明CAListView的数据代理CAListView 方法(点击查看方法介绍)方法说明numberOfIndexcell的数量listViewHeightForIndexcell的高度listViewCellAtIndex生成cell listViewWillDisplayCellAtIndex回调当前将要显示的listCAListView 方法说明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当前的listViewunsigned int indexcell的索引值解释:cell的高度virtual CAListViewCell* listViewCellAtIndex(CAListView *listView, const DSize& cellSize, unsigned int index) = 0;返回值:CAListViewCell*参数:类型参数名说明CAListView*listView当前的listViewconst DSize&cellSizecell的sizeunsigned int indexcell的索引值解释:生成cell virtual void listViewWillDisplayCellAtIndex(CAListView* table, CAListViewCell* cell, unsigned int index) {};返回值:void参数:类型参数名说明CAListView*tableListView的tableCAListView*listView当前的listViewunsigned int indexcell的索引值解释:回调当前将要显示的list

CAListViewDataSource