Conforms to UICollectionViewDelegateFlowLayout
Declared in OCAEditableCollectionViewFlowLayout.h

Overview

An object that adopts OCAEditableCollectionViewDelegateFlowLayout will be notified of and may control the order of the cells in the collection view.

Instance Methods

collectionView:layout:didBeginDraggingItemAtIndexPath:

Inform the delegate dragging of a cell has begun

- (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout didBeginDraggingItemAtIndexPath:(NSIndexPath *)indexPath

Parameters

collectionView

the UICollectionView being edited.

collectionViewLayout

the layout responsible for the editing

indexPath

the indexPath where the dragging began

Declared In

OCAEditableCollectionViewFlowLayout.h

collectionView:layout:didEndDraggingItemAtIndexPath:

Inform the delegate dragging of a cell has ended

- (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout didEndDraggingItemAtIndexPath:(NSIndexPath *)indexPath

Parameters

collectionView

the UICollectionView being edited.

collectionViewLayout

the layout responsible for the editing

indexPath

the indexPath where the dragging ended

Declared In

OCAEditableCollectionViewFlowLayout.h

collectionView:layout:willBeginDraggingItemAtIndexPath:

Inform the delegate dragging of a cell will begin

- (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout willBeginDraggingItemAtIndexPath:(NSIndexPath *)indexPath

Parameters

collectionView

the UICollectionView being edited.

collectionViewLayout

the layout responsible for the editing

indexPath

the indexPath where the dragging will begin

Declared In

OCAEditableCollectionViewFlowLayout.h

collectionView:layout:willEndDraggingItemAtIndexPath:

Inform the delegate dragging of a cell will end

- (void)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout willEndDraggingItemAtIndexPath:(NSIndexPath *)indexPath

Parameters

collectionView

the UICollectionView being edited.

collectionViewLayout

the layout responsible for the editing

indexPath

the indexPath where the dragging will end

Declared In

OCAEditableCollectionViewFlowLayout.h

didBeginEditingForCollectionView:layout:

Inform the delegate editing of the layout has begun

- (void)didBeginEditingForCollectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout

Parameters

collectionView

the UICollectionView being edited.

collectionViewLayout

the layout responsible for the editing

Declared In

OCAEditableCollectionViewFlowLayout.h

didEndEditingForCollectionView:layout:

Inform the delegate editing of the layout has ended

- (void)didEndEditingForCollectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout

Parameters

collectionView

the UICollectionView being edited.

collectionViewLayout

the layout responsible for the editing

Declared In

OCAEditableCollectionViewFlowLayout.h

shouldEnableEditingForCollectionView:layout:

Ask the delegate if editing is allowed by this collectionview and layout

- (BOOL)shouldEnableEditingForCollectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout

Parameters

collectionView

the UICollectionView being edited.

collectionViewLayout

the layout responsible for the editing

Return Value

indexPath YES if editing is allowed, NO otherwise

Declared In

OCAEditableCollectionViewFlowLayout.h