Conforms to NSObject
Declared in TKSideDrawer.h

Overview

The methods declared by the TKSideDrawerDelegate protocol allow the adopting delegate to respond to messages from the TKSideDrawer class and thus respond to different operations such as showing and dismissing TKSideDrawer.

Instance Methods

didDismissSideDrawer:

Called after TKSideDrawer is dismissed.

- (void)didDismissSideDrawer:(TKSideDrawer *)sideDrawer

Parameters

sideDrawer

The TKSideDrawer instance that was dismissed.

Declared In

TKSideDrawer.h

didPanSideDrawer:

Called when TKSideDrawer is panning.

- (void)didPanSideDrawer:(TKSideDrawer *)sideDrawer

Parameters

sideDrawer

The TKSideDrawer instance that is panning.

Declared In

TKSideDrawer.h

didShowSideDrawer:

Called when TKSideDrawer is already visible.

- (void)didShowSideDrawer:(TKSideDrawer *)sideDrawer

Parameters

sideDrawer

The TKSideDrawer instance which is presented.

Declared In

TKSideDrawer.h

sideDrawer:cellForItemAtIndexPath:

Returns the TKSideDrawerTableViewCell that is used to display a specified item.

- (TKSideDrawerTableViewCell *)sideDrawer:(TKSideDrawer *)sideDrawer cellForItemAtIndexPath:(NSIndexPath *)indexPath

Parameters

sideDrawer

The TKSideDrawer instance that requests the cell.

indexPath

The index path of the item that the cell visualizes.

Declared In

TKSideDrawer.h

sideDrawer:didSelectItemAtIndexPath:

Called when an item inside TKSideDrawer is selected.

- (void)sideDrawer:(TKSideDrawer *)sideDrawer didSelectItemAtIndexPath:(NSIndexPath *)indexPath

Parameters

sideDrawer

TKSideDrawer instance which item is selected.

indexPath

The index path of the selected item.

Declared In

TKSideDrawer.h

sideDrawer:heightForItemAtIndexPath:

Returns the height for a specific item in TKSideDrawer.

- (CGFloat)sideDrawer:(TKSideDrawer *)sideDrawer heightForItemAtIndexPath:(NSIndexPath *)indexPath

Parameters

sideDrawer

The TKSideDrawer instance that requires the height for its items.

indexPath

The index path of the item.

Return Value

The height of the specified item.

Declared In

TKSideDrawer.h

sideDrawer:updateVisualsForItemAtIndexPath:

Called just before an item is rendered.

- (void)sideDrawer:(TKSideDrawer *)sideDrawer updateVisualsForItemAtIndexPath:(NSIndexPath *)indexPath

Parameters

sideDrawer

The TKSideDrawer instance that is presented.

indexPath

The index path of the item to be updated.

Declared In

TKSideDrawer.h

sideDrawer:updateVisualsForSection:

Called just before a section is rendered.

- (void)sideDrawer:(TKSideDrawer *)sideDrawer updateVisualsForSection:(NSInteger)sectionIndex

Parameters

sideDrawer

The TKSideDrawer instance that is presented.

sectionIndex

The index of the section to be updated.

Declared In

TKSideDrawer.h

sideDrawer:viewForHeaderInSection:

Returns a UIView that is used as header for section in TKSideDrawer.

- (UIView *)sideDrawer:(TKSideDrawer *)sideDrawer viewForHeaderInSection:(NSInteger)sectionIndex

Parameters

sideDrawer

The TKSideDrawer instance that requeres section view.

sectionIndex

The index of the section in TKSideDrawer.

Return Value

The UIView is used for the header of the specified section.

Declared In

TKSideDrawer.h

willDismissSideDrawer:

Called just before TKSideDrawer is dismissed.

- (void)willDismissSideDrawer:(TKSideDrawer *)sideDrawer

Parameters

sideDrawer

The TKSideDrawer that will be dismissed.

Declared In

TKSideDrawer.h

willShowSideDrawer:

Called just before TKSideDrawer instance becomes visible.

- (void)willShowSideDrawer:(TKSideDrawer *)sideDrawer

Parameters

sideDrawer

The TKSideDrawer instance which is presented.

Declared In

TKSideDrawer.h