Skip to content

CAListViewDataSource

9miao edited this page Sep 17, 2014 · 1 revision

CAListViewDataSource

Class Description

CAListView’s data delegate

Method

Access modifier

Method name

Description

public

numberOfIndex

Cell’s count

public

listViewHeightForIndex

Cell height

public

listViewCellAtIndex

generate cell

Method Description

*virtual unsigned int numberOfIndex(CAListView listView) = 0
Return value: void
Parameter:

Type

Parameter name

Description

CAListView *

listView

current listView

*virtual unsigned int listViewHeightForIndex(CAListView listView, unsigned int index) = 0
Return value: void
Parameter:

Type

Parameter name

Description

CAListView *

listView

current listView

unsigned int

index

Cell’s index value

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

Type

Parameter name

Description

CAListView *

listView

current listView

const CCSize& cellSize

cellSize

Cell’s size

unsigned int

index

Cell’s index value

Clone this wiki locally