Skip to content

CACollectionViewDelegate

9miao Mobile Game edited this page Aug 14, 2014 · 2 revisions

CACollectionViewDelegate Detailed Description

Class Description

CACollectionView’s touch event agent

Method

Access modifier

Method name

Description

public

collectionViewDidSelectCellAtIndexPath

Trigger when cell is selected

public

collectionViewDidDeselectCellAtIndexPath

Trigger when cell is deselected

Method Description

virtual void collectionViewDidSelectCellAtIndexPath(CACollectionView *collectionView, unsigned int section ,unsigned int row, unsigned int item)
Return value: void
Parameter:

Type

Parameter

Description

CACollectionView   *

collectionView

Current collectionView

unsigned   int

section

Touch subordinated section

unsigned   int

row

Current selected cell

unsigned   int

item

Current selected cell’s item

virtual void collectionViewDidDeselectCellAtIndexPath(CACollectionView *collectionView, unsigned int section ,unsigned int row, unsigned int item)
Return value: void
Parameter:

Type

Parameter name

Description

CACollectionView   *

collectionView

Current collectionView

unsigned   int

section

Touch subordinated section

unsigned   int

row

Current deselected cell

unsigned   int

item

Current deselected cell’s item

Clone this wiki locally