CYYSubsectionTableViewDataSource Class Reference
Inherits from | NSObject |
Conforms to | UITableViewDataSource UITableViewDelegate |
Declared in | CYYSubsectionTableViewDataSource.h CYYSubsectionTableViewDataSource.m |
Overview
Create a tableView that has Sections, Subsections and Rows. Or rather, to avoid confusing nomenclature, Groups, Subgroups and Rows. Groups and Subgroups should appear as tableView sections; Rows map to tableView Rows.
We do not currently implement the tableView data source methods that support editing of rows.
Tasks
-
– sectionIndexForGroup:
tableView’s sectionIndex for this group This method must take into account the number of groups and subgroups that preceed it in the tableView.
-
– sectionIndexForSubgroup:inGroup:
tableView’s section index for this subgroup.
Instance Methods
sectionIndexForGroup:
tableView’s sectionIndex for this group This method must take into account the number of groups and subgroups that preceed it in the tableView.
- (NSUInteger)sectionIndexForGroup:(NSUInteger)group
Parameters
- group
The index of the group
Return Value
The tableView section index for this group.
Declared In
CYYSubsectionTableViewDataSource.h
sectionIndexForSubgroup:inGroup:
tableView’s section index for this subgroup.
- (NSUInteger)sectionIndexForSubgroup:(NSUInteger)subgroup inGroup:(NSUInteger)group
Parameters
- subgroup
The index of the subgroup
- group
The index of the group containing this subgroup
Return Value
The tableView section index for the given subgroup
Declared In
CYYSubsectionTableViewDataSource.h