JKExpandTableViewDataSource

Extends Protocol:
NSObject
Declared In:

Introduction

Users of this class must implement this protocol.



Methods

-iconForCellAtChildIndex:withinParentCellIndex:
-iconForParentCellAtIndex:
-labelForCellAtChildIndex:withinParentCellIndex:
-labelForParentCellAtIndex:
-numberOfChildCellsUnderParentIndex:
-numberOfParentCells
-shouldDisplaySelectedStateForCellAtChildIndex:withinParentCellIndex:
-shouldRotateIconForParentOnToggle

iconForCellAtChildIndex:withinParentCellIndex:


@optional

- (UIImage *) iconForCellAtChildIndex:(NSInteger) childIndex withinParentCellIndex:(NSInteger) parentIndex;
Parameters
childIndex

The child index in question

parentIndex

The parent index in question

Return Value

UIImage shown to the left of the label for the child.

Discussion

Optional method


iconForParentCellAtIndex:


@optional

- (UIImage *) iconForParentCellAtIndex:(NSInteger) parentIndex;
Parameters
parentIndex

The parent index in question

Return Value

UIImage shown to the left of the label for the parent.

Discussion

Optional method


labelForCellAtChildIndex:withinParentCellIndex:


@required

- (NSString *) labelForCellAtChildIndex:(NSInteger) childIndex withinParentCellIndex:(NSInteger) parentIndex;
Parameters
childIndex

The child index in question

parentIndex

The parent index in question

Return Value

The label string shown on the child cell.


labelForParentCellAtIndex:


@required

- (NSString *) labelForParentCellAtIndex:(NSInteger) parentIndex;
Parameters
parentIndex

The parent index in question

Return Value

The label string shown on the parent cell.


numberOfChildCellsUnderParentIndex:


@required

- (NSInteger) numberOfChildCellsUnderParentIndex:(NSInteger) parentIndex;
Parameters
parentIndex

The parent index in question

Return Value

The total number of children cells under each parent in this table.


numberOfParentCells


@required

- (NSInteger) numberOfParentCells;
Return Value

The total number of parent cells in this table.


shouldDisplaySelectedStateForCellAtChildIndex:withinParentCellIndex:


@required

- (BOOL) shouldDisplaySelectedStateForCellAtChildIndex:(NSInteger) childIndex withinParentCellIndex:(NSInteger) parentIndex;
Parameters
childIndex

The child index in question

parentIndex

The parent index in question

Return Value

YES if the child is selected. Otherwise, NO.


shouldRotateIconForParentOnToggle


@optional

- (BOOL) shouldRotateIconForParentOnToggle;
Return Value

YES if the parent icon should be rotated 90 degrees when parent is toggled. Otherwise, return NO.

Discussion

Optional method