SCPropertyGroup
@interface SCPropertyGroup : NSObject {
NSString *headerTitle;
NSString *footerTitle;
NSMutableArray *propertyDefinitionNames;
}
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.
See
SCPropertyDefinition, SCClassDefinition.-
Undocumented
Declaration
Objective-C
NSString *headerTitle -
Undocumented
Declaration
Objective-C
NSString *footerTitle -
Undocumented
Declaration
Objective-C
NSMutableArray *propertyDefinitionNames
-
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. *
- - parameter: groupHeaderTitle A header title for the group.
- - parameter: groupFooterTitle A footer title for the group.
Declaration
Objective-C
+ (instancetype)groupWithHeaderTitle:(NSString *)groupHeaderTitle footerTitle:(NSString *)groupFooterTitle propertyNames:(NSArray *)propertyNames; -
Returns an initialized ‘SCPropertyGroup’ given a header title, a footer title
- and an NSArray of property names to be included in the group. *
- - parameter: groupHeaderTitle A header title for the group.
- - parameter: groupFooterTitle A footer title for the group.
Declaration
Objective-C
- (instancetype)initWithHeaderTitle:(NSString *)groupHeaderTitle footerTitle:(NSString *)groupFooterTitle propertyNames:(NSArray *)propertyNames;
-
The group header title.
Declaration
Objective-C
@property (nonatomic, copy) NSString *headerTitle; -
The group footer title.
Declaration
Objective-C
@property (nonatomic, copy) NSString *footerTitle;
-
The count of the property names.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger propertyNameCount; -
Add the property name to the group.
Declaration
Objective-C
- (void)addPropertyName:(NSString *)propertyName; -
Add the property name to the group at the given index.
Declaration
Objective-C
- (void)insertPropertyName:(NSString *)propertyName atIndex:(NSInteger)index; -
Return the property name at the given index.
Declaration
Objective-C
- (NSString *)propertyNameAtIndex:(NSInteger)index; -
Remove the property name at the given index from the group.
Declaration
Objective-C
- (void)removePropertyNameAtIndex:(NSInteger)index; -
Remove all property names from the group.
Declaration
Objective-C
- (void)removeAllPropertyNames; -
Returns TRUE if the property name exists in the group.
Declaration
Objective-C
- (BOOL)containsPropertyName:(NSString *)propertyName;
View on GitHub
Install in Dash
SCPropertyGroup Class Reference