JKExpandTableViewDelegate

Extends Protocol:
NSObject
Declared In:

Introduction

Users of this class must implement this protocol.



Methods

-backgroundColor
-fontForChildren
-fontForParents
-foregroundColor
-selectionIndicatorIcon
-shouldSupportMultipleSelectableChildrenAtParentIndex:
-tableView:didDeselectCellAtChildIndex:withInParentCellIndex:
-tableView:didSelectCellAtChildIndex:withInParentCellIndex:
-tableView:didSelectParentCellAtIndex:

backgroundColor


@optional

- (UIColor *) backgroundColor;
Return Value

UIColor

Discussion

Optional method to set custom foreground color.


fontForChildren


@optional

- (UIFont *) fontForChildren;
Return Value

UIFont for the label on the children cells

Discussion

Optional method to set custom Font for the labels on the Children cells.


fontForParents


@optional

- (UIFont *) fontForParents;
Return Value

UIFont for the label on the parent cells

Discussion

Optional method to set custom font for the labels on the Parent cells.


foregroundColor


@optional

- (UIColor *) foregroundColor;
Return Value

UIColor

Discussion

Optional method to set custom foreground color.


selectionIndicatorIcon


@optional

- (UIImage *) selectionIndicatorIcon;
Return Value

UIImage

Discussion

Optional method to set a custom selection indicator icon.


shouldSupportMultipleSelectableChildrenAtParentIndex:


@required

- (BOOL) shouldSupportMultipleSelectableChildrenAtParentIndex:(NSInteger) parentIndex;
Parameters
parentIndex

The parent index in question

Return Value

YES if more than one child under this parent can be selected at the same time. Otherwise, return NO.

Discussion

Within a single JKExpandTableView, it is permissible to have a mix of multi-selectables and non-multi-selectables.


tableView:didDeselectCellAtChildIndex:withInParentCellIndex:


@optional

- (void) tableView:(UITableView *)tableView didDeselectCellAtChildIndex:(NSInteger) childIndex withInParentCellIndex:(NSInteger) parentIndex;
Parameters
childIndex

The child index in question

parentIndex

The parent index in question

Discussion

Optional method the delegate should implement to get notified when a child is clicked on.


tableView:didSelectCellAtChildIndex:withInParentCellIndex:


@optional

- (void) tableView:(UITableView *)tableView didSelectCellAtChildIndex:(NSInteger) childIndex withInParentCellIndex:(NSInteger) parentIndex;
Parameters
childIndex

The child index in question

parentIndex

The parent index in question

Discussion

Optional method the delegate should implement to get notified when a child is clicked on.


tableView:didSelectParentCellAtIndex:


@optional

- (void) tableView:(UITableView *)tableView didSelectParentCellAtIndex:(NSInteger) parentIndex;
Parameters
parentIndex

The parent index in question

Discussion

Optional method to get notified when a parent is clicked on.