SCArrayOfStringsSection Class Reference
Inherits from | SCArrayOfObjectsSection : SCArrayOfItemsSection : SCTableViewSection : NSObject |
Declared in | SCTableViewSection.h |
Overview
This class functions as an SCTableViewModel section that is able to represent an array of string items and automatically generate its cells from these items. The class inherits all its funtionality from its superclass: SCArrayOfItemsSection, except that its items array can only contain items of type NSString.
Tasks
-
+ sectionWithHeaderTitle:items:
Allocates and returns an initialized ‘SCArrayOfItemsSection’ given a header title and an array of NSString items.
-
– initWithHeaderTitle:items:
Returns an initialized ‘SCArrayOfItemsSection’ given a header title and an array of NSString items.
Class Methods
sectionWithHeaderTitle:items:
Allocates and returns an initialized ‘SCArrayOfItemsSection’ given a header title and an array of NSString items.
+ (id)sectionWithHeaderTitle:(NSString *)sectionHeaderTitle items:(NSMutableArray *)sectionItems
Parameters
- sectionHeaderTitle
A header title for the section.
- sectionItems
An array of items that the section will use to generate its cells. This array must be of type NSMutableArray, as it must support the section’s add, delete, and move operations. All array objects must be of type NSString.
Declared In
SCTableViewSection.h
Instance Methods
initWithHeaderTitle:items:
Returns an initialized ‘SCArrayOfItemsSection’ given a header title and an array of NSString items.
- (id)initWithHeaderTitle:(NSString *)sectionHeaderTitle items:(NSMutableArray *)sectionItems
Parameters
- sectionHeaderTitle
A header title for the section.
- sectionItems
An array of items that the section will use to generate its cells. This array must be of type NSMutableArray, as it must support the section’s add, delete, and move operations. All array objects must be of type NSString.
Declared In
SCTableViewSection.h