SCPropertyGroup Class Reference
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
-
+ 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.
-
– 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.
Configuration
-
headerTitle
The group header title.
property -
footerTitle
The group footer title.
property
Managing Property Names
-
propertyNameCount
The count of the property names.
property -
– addPropertyName:
Add the property name to the group.
-
– insertPropertyName:atIndex:
Add the property name to the group at the given index.
-
– propertyNameAtIndex:
Return the property name at the given index.
-
– removePropertyNameAtIndex:
Remove the property name at the given index from the group.
-
– removeAllPropertyNames
Remove all property names from the group.
-
– containsPropertyName:
Returns TRUE if the property name exists in the group.
Properties
footerTitle
The group footer title.
@property (nonatomic, copy) NSString *footerTitle
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