SCArrayOfStringsSection

@interface SCArrayOfStringsSection : SCArrayOfObjectsSection

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.

  • Allocates and returns an initialized ‘SCArrayOfItemsSection’ given a header title and an array of NSString items.

    Declaration

    Objective-C

    + (instancetype)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.

  • Returns an initialized ‘SCArrayOfItemsSection’ given a header title and an array of NSString items.

    Declaration

    Objective-C

    - (instancetype)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.