Inherits from RKAbstractTableController : NSObject
Declared in RKTableController.h
RKTableController.m

Tasks

Static Tables

  • – loadTableItems:withMappingBlock:

    Load an array of RKTableItems into table cells of the specified class. A table cell mapping will be constructed on your behalf and yielded to the block for configuration. After the block is invoked, the objects will be loaded into the specified section.

  • – loadTableItems:

    Load an array of RKTableItem objects into the table using the default RKTableViewCellMapping. An instance of the cell mapping will be created on your behalf and configured with the default table view cell attribute mappings.

  • – loadTableItems:inSection:

    Load an array of RKTableItem objects into the specified section with the table using the default RKTableViewCellMapping. An instance of the cell mapping will be created on your behalf and configured with the default table view cell attribute mappings.

Forms

  •   form

    The form that the table has been loaded with (if any)

    property
  • – loadForm:

    Loads the table with the contents of the specified form object. Forms are used to build content entry and editing interfaces for objects.

Managing Sections

Properties

form

The form that the table has been loaded with (if any)

@property (nonatomic, retain, readonly) RKForm *form

Declared In

RKTableController.h

Instance Methods

addSection:

Adds a new section to the model.

- (void)addSection:(RKTableSection *)section

Parameters

section

Must be a valid non nil RKTableViewSection.

Declared In

RKTableController.h

addSectionUsingBlock:

Creates an section and yields it to the block for configuration. After the block is evaluated, the section is added to the table.

- (void)addSectionUsingBlock:(void ( ^ ) ( RKTableSection *section ))block

Declared In

RKTableController.h

insertSection:atIndex:

Inserts a new section at the specified index.

- (void)insertSection:(RKTableSection *)section atIndex:(NSUInteger)index

Parameters

section

Must be a valid non nil RKTableViewSection.

index

Must be less than the total number of sections.

Declared In

RKTableController.h

loadForm:

Loads the table with the contents of the specified form object. Forms are used to build content entry and editing interfaces for objects.

- (void)loadForm:(RKForm *)form

See Also

Declared In

RKTableController.h

loadTableItems:

Load an array of RKTableItem objects into the table using the default RKTableViewCellMapping. An instance of the cell mapping will be created on your behalf and configured with the default table view cell attribute mappings.

- (void)loadTableItems:(NSArray *)tableItems

Parameters

tableItems

An array of RKTableItem instances to load into the table

Declared In

RKTableController.h

loadTableItems:inSection:

Load an array of RKTableItem objects into the specified section with the table using the default RKTableViewCellMapping. An instance of the cell mapping will be created on your behalf and configured with the default table view cell attribute mappings.

- (void)loadTableItems:(NSArray *)tableItems inSection:(NSUInteger)sectionIndex

Parameters

tableItems

An array of RKTableItem instances to load into the table

sectionIndex

The section to load the table items into. Must be less than sectionCount.

Declared In

RKTableController.h

loadTableItems:withMappingBlock:

Load an array of RKTableItems into table cells of the specified class. A table cell mapping will be constructed on your behalf and yielded to the block for configuration. After the block is invoked, the objects will be loaded into the specified section.

- (void)loadTableItems:(NSArray *)tableItems withMappingBlock:(void ( ^ ) ( RKTableViewCellMapping *))block

Declared In

RKTableController.h

removeAllSections

Removes all sections from the model.

- (void)removeAllSections

Declared In

RKTableController.h

removeSection:

Removes the specified section from the model.

- (void)removeSection:(RKTableSection *)section

Parameters

section

The section to remove.

Declared In

RKTableController.h

removeSectionAtIndex:

Removes the section at the specified index from the model.

- (void)removeSectionAtIndex:(NSUInteger)index

Parameters

index

Must be less than the total number of section.

Declared In

RKTableController.h