IGFlowLayoutViewDelegate Protocol Reference

Conforms to UIScrollViewDelegate
Declared in IGFlowLayoutView.h

Overview

The protocol for the IGFlowLayoutView’s delegate proerty. All methods on this protocol are optional, and provide additional information for selection, resizing and reordering.

– flowLayoutView:editItemSelectedAtIndex:

Tells the delegate that the user has just selected a new item in flow layout view.

- (void)flowLayoutView:(IGFlowLayoutView *)flowLayoutView editItemSelectedAtIndex:(NSInteger)index

Parameters

flowLayoutView

The flowLayoutView providing the information.

index

The index of the item selected.

Declared In

IGFlowLayoutView.h

– flowLayoutView:editItemDeselectedAtIndex:

Tells the delegate that an item was unselected.

- (void)flowLayoutView:(IGFlowLayoutView *)flowLayoutView editItemDeselectedAtIndex:(NSInteger)index

Parameters

flowLayoutView

The flowLayoutView providing the information.

index

The index of the item that was previously selected.

Declared In

IGFlowLayoutView.h

– flowLayoutView:itemSizeChangedFrom:to:at:

Tells the delegate that the user has just resized an item in the flow layout view.

- (void)flowLayoutView:(IGFlowLayoutView *)flowLayoutView itemSizeChangedFrom:(CGSize)oldSize to:(CGSize)newSize at:(NSInteger)index

Parameters

flowLayoutView

The flowLayoutView providing the information.

oldSize

The size prior to resizing.

newSize

The new size of the item.

index

The index of the item reszied.

Declared In

IGFlowLayoutView.h

– flowLayoutView:itemIndexChangedFrom:to:

Tells the delegate that the user has just moved an item in the flow layout view.

- (void)flowLayoutView:(IGFlowLayoutView *)flowLayoutView itemIndexChangedFrom:(NSInteger)oldIndex to:(NSInteger)newIndex

Parameters

flowLayoutView

The flowLayoutView providing the information.

oldIndex

The original index of the item.

newIndex

The new index of the item.

Declared In

IGFlowLayoutView.h

– flowLayoutView:dragCompleteForItemAt:

Tells the delegate that the user has finished a drag operation.

- (void)flowLayoutView:(IGFlowLayoutView *)flowLayoutView dragCompleteForItemAt:(NSInteger)index

Parameters

flowLayoutView

The flowLayoutView providing the information.

index

The new index of the item dragged.

Declared In

IGFlowLayoutView.h

– flowLayoutView:finishedDraggingItemFrom:to:

Tells the delegate that the user has finished moving an item from a position to a new position

- (void)flowLayoutView:(IGFlowLayoutView *)flowLayoutView finishedDraggingItemFrom:(NSInteger)from to:(NSInteger)to

Parameters

flowLayoutView

The flowLayoutView providing the information.

from

The original index of the item dragged.

to

The new index of the item dragged.

Discussion

This method is invoked after the drag operation has completed and doesn’t get invoked constantly during the drag operation.

Declared In

IGFlowLayoutView.h

– flowLayoutView:resizeCompleteForItemAt:

Tells the delegate that the user has finished a resize operation.

- (void)flowLayoutView:(IGFlowLayoutView *)flowLayoutView resizeCompleteForItemAt:(NSInteger)index

Parameters

flowLayoutView

The flowLayoutView providing the information.

index

The index of the item reszied.

Declared In

IGFlowLayoutView.h

– flowLayoutView:finishedResizingItem:from:to:

Tells the delegate that the user has finished a resize operation and shows the size change.

- (void)flowLayoutView:(IGFlowLayoutView *)flowLayoutView finishedResizingItem:(NSInteger)index from:(CGSize)from to:(CGSize)to

Parameters

flowLayoutView

The flowLayoutView providing the information.

index

The index of the item reszied.

from

The original size of the item.

to

The new size of the item.

Declared In

IGFlowLayoutView.h

– flowLayoutView:editViewFrameChanged:

Tells the delegate that the frame of the edit selection view had changed.

- (void)flowLayoutView:(IGFlowLayoutView *)flowLayoutView editViewFrameChanged:(CGRect)frame

Parameters

flowLayoutView

The flowLayoutView providing the information.

frame

The frame releative to the flowlayoutView of the edit selection view.

Declared In

IGFlowLayoutView.h