Conforms to NSObject
Declared in SEssentialsFlowLayoutDelegate.h
Availability
Related samples

Overview

These callbacks allow for notification of events on the layout by the user and also allows for a confirmation that edit events like move and delete should proceed.

Tasks

Instance Methods

didBeginEditInFlowLayout:

Indicates layout is now in edit mode

- (void)didBeginEditInFlowLayout:(SEssentialsFlowLayout *)flow

Parameters

flow

the SEssentialsFlowLayout

Declared In

SEssentialsFlowLayoutDelegate.h

didEndEditInFlowLayout:

Indicates layout has finished editing

- (void)didEndEditInFlowLayout:(SEssentialsFlowLayout *)flow

Parameters

flow

the SEssentialsFlowLayout

Declared In

SEssentialsFlowLayoutDelegate.h

editButtonPositionInFlowLayout:

If implemented allows position other than that supplied by editButtonLocation for the editing button in the flow layout

- (CGPoint)editButtonPositionInFlowLayout:(SEssentialsFlowLayout *)flow

Parameters

flow

the SEssentialsFlowLayout

Return Value

position relative to flow origin for done button

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:animateView:toTarget:

When implemented must animate the view to the target position. This is called when the animationType is set to SEssentialsAnimationUser

- (void)flowLayout:(SEssentialsFlowLayout *)flow animateView:(UIView *)view toTarget:(CGPoint)target

Parameters

flow

the SEssentialsFlowLayout

view

the subview that is moving

target

the intended center destination at the end of the animation

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:deleteIconPositionInView:

If implemented allows position other than default top left for ‘delete’ icon on each item during edit mode

- (CGPoint)flowLayout:(SEssentialsFlowLayout *)flow deleteIconPositionInView:(UIView *)view

Parameters

flow

the SEssentialsFlowLayout

view

the subview that was moved

Return Value

position relative to view origin for delete icon

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:didDragView:

Indicates a subview is moving and makes repeated calls as the subview is dragged.

- (void)flowLayout:(SEssentialsFlowLayout *)flow didDragView:(UIView *)view

Parameters

flow

the SEssentialsFlowLayout

view

the subview that was moved

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:didMoveView:

Indicates a subview has been moved. To find out the new index look up the subview in flow.orderedSubviews

- (void)flowLayout:(SEssentialsFlowLayout *)flow didMoveView:(UIView *)view

Parameters

flow

the SEssentialsFlowLayout

view

the subview that was moved

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:didNotMoveView:

Indicates that a subview has not been moved after it was dragged.

- (void)flowLayout:(SEssentialsFlowLayout *)flow didNotMoveView:(UIView *)view

Parameters

flow

the SEssentialsFlowLayout

view

the subview that was not moved

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:didRemoveView:

Indicates a subview has been removed.

- (void)flowLayout:(SEssentialsFlowLayout *)flow didRemoveView:(UIView *)view

Parameters

flow

the SEssentialsFlowLayout

view

the subview that was removed

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:dragPointForTouchAtPoint:view:

If implemented provides the offset in the subview that will be positioned under the drag point during editing.

- (CGPoint)flowLayout:(SEssentialsFlowLayout *)flow dragPointForTouchAtPoint:(CGPoint)point view:(UIView *)view

Parameters

flow

the SEssentialsFlowLayout

point

initial touch point offset

view

the subview that was moved

Return Value

position relative to view center that will move under the drag point

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:imageForDestinationMovingView:

If implemented allows the destination marker image to be provided.

- (UIImage *)flowLayout:(SEssentialsFlowLayout *)flow imageForDestinationMovingView:(UIView *)view

Parameters

flow

the SEssentialsFlowLayout

view

the subview that is moving

Return Value

image that will be drawn at the the insertion point while editing

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:shouldMoveView:

Called to confirm if a users attempt to directly move a subview should proceed.

- (BOOL)flowLayout:(SEssentialsFlowLayout *)flow shouldMoveView:(UIView *)view

Parameters

flow

the SEssentialsFlowLayout

view

the subview that is about to be moved

Return Value

YES indicates move should proceed

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:shouldRemoveView:

Called to confirm if a users attempt to remove a subview should proceed.

- (BOOL)flowLayout:(SEssentialsFlowLayout *)flow shouldRemoveView:(UIView *)view

Parameters

flow

the SEssentialsFlowLayout

view

the subview that is requesting deletion

Return Value

YES indicates deletion should proceed

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:willMoveView:

Indicates a subview will be moved

- (void)flowLayout:(SEssentialsFlowLayout *)flow willMoveView:(UIView *)view

Parameters

flow

the SEssentialsFlowLayout

view

the subview that will be moved

Declared In

SEssentialsFlowLayoutDelegate.h

flowLayout:willRemoveView:

Indicates a subview will be removed

- (void)flowLayout:(SEssentialsFlowLayout *)flow willRemoveView:(UIView *)view

Parameters

flow

the SEssentialsFlowLayout

view

the subview that will be removed

Declared In

SEssentialsFlowLayoutDelegate.h

willBeginEditInFlowLayout:

Indicates layout will be put into edit mode

- (void)willBeginEditInFlowLayout:(SEssentialsFlowLayout *)flow

Parameters

flow

The SEssentialsFlowLayout

Declared In

SEssentialsFlowLayoutDelegate.h

willEndEditInFlowLayout:

Indicates layout will finish editing

- (void)willEndEditInFlowLayout:(SEssentialsFlowLayout *)flow

Parameters

flow

the SEssentialsFlowLayout

Declared In

SEssentialsFlowLayoutDelegate.h