CAListViewDataSource

2018-09-08 15:48 更新

類(lèi)說(shuō)明

CAListView的數(shù)據(jù)代理


CAListView 方法(點(diǎn)擊查看方法介紹)

方法說(shuō)明
numberOfIndexcell的數(shù)量
listViewHeightForIndexcell的高度
listViewCellAtIndex生成cell 
listViewWillDisplayCellAtIndex回調(diào)當(dāng)前將要顯示的list


CAListView 方法說(shuō)明

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

返回值:unsigned int 

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
CAListView*listView當(dāng)前的listView

解釋?zhuān)篶ell的數(shù)量


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

返回值:unsigned int

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
CAListView*listView當(dāng)前的listView
unsigned int indexcell的索引值

解釋?zhuān)篶ell的高度


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

返回值:CAListViewCell*

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
CAListView*listView當(dāng)前的listView
const DSize&cellSizecell的size
unsigned int indexcell的索引值

解釋?zhuān)荷蒫ell 


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

返回值:void

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
CAListView*tableListView的table
CAListView*listView當(dāng)前的listView
unsigned int indexcell的索引值

解釋?zhuān)夯卣{(diào)當(dāng)前將要顯示的list

以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)