Inherits from NSObject
Declared in SCPropertyDefinition.h

Overview

This class functions as a way to define a property definition group that is used to generate a corresponding user interface element that groups these properties (e.g.: a table view section).

Property definitions are added to this class using their NSString ‘name’ property.

Tasks

Creation and Initialization

Configuration

Managing Property Names

Properties

footerTitle

The group footer title.

@property (nonatomic, copy) NSString *footerTitle

Declared In

SCPropertyDefinition.h

headerTitle

The group header title.

@property (nonatomic, copy) NSString *headerTitle

Declared In

SCPropertyDefinition.h

propertyNameCount

The count of the property names.

@property (nonatomic, readonly) NSInteger propertyNameCount

Declared In

SCPropertyDefinition.h

Class Methods

groupWithHeaderTitle:footerTitle:propertyNames:

Allocates and returns an initialized ‘SCPropertyGroup’ given a header title, a footer title and an NSArray of property names to be included in the group.

+ (id)groupWithHeaderTitle:(NSString *)groupHeaderTitle footerTitle:(NSString *)groupFooterTitle propertyNames:(NSArray *)propertyNames

Parameters

sectionFooterTitle

A footer title for the group.

sectionHeaderTitle

A header title for the group.

Declared In

SCPropertyDefinition.h

Instance Methods

addPropertyName:

Add the property name to the group. 
- (void)addPropertyName:(NSString *)propertyName

Declared In

SCPropertyDefinition.h

containsPropertyName:

Returns TRUE if the property name exists in the group. 
- (BOOL)containsPropertyName:(NSString *)propertyName

Declared In

SCPropertyDefinition.h

initWithHeaderTitle:footerTitle:propertyNames:

Returns an initialized ‘SCPropertyGroup’ given a header title, a footer title and an NSArray of property names to be included in the group.

- (id)initWithHeaderTitle:(NSString *)groupHeaderTitle footerTitle:(NSString *)groupFooterTitle propertyNames:(NSArray *)propertyNames

Parameters

sectionFooterTitle

A footer title for the group.

sectionHeaderTitle

A header title for the group.

Declared In

SCPropertyDefinition.h

insertPropertyName:atIndex:

Add the property name to the group at the given index. 
- (void)insertPropertyName:(NSString *)propertyName atIndex:(NSInteger)index

Declared In

SCPropertyDefinition.h

propertyNameAtIndex:

Return the property name at the given index. 
- (NSString *)propertyNameAtIndex:(NSInteger)index

Declared In

SCPropertyDefinition.h

removeAllPropertyNames

Remove all property names from the group. 
- (void)removeAllPropertyNames

Declared In

SCPropertyDefinition.h

removePropertyNameAtIndex:

Remove the property name at the given index from the group. 
- (void)removePropertyNameAtIndex:(NSInteger)index

Declared In

SCPropertyDefinition.h