-
Notifications
You must be signed in to change notification settings - Fork 421
CACollectionViewDelegate
CACollectionView’s touch event agent
Access modifier |
Method name |
Description |
public |
collectionViewDidSelectCellAtIndexPath |
Trigger when cell is selected |
public |
collectionViewDidDeselectCellAtIndexPath |
Trigger when cell is deselected |
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 |