SCExpandCollapseCell Class Reference
Inherits from | SCCustomCell : SCTableViewCell : UITableViewCell |
Declared in | SCExpandCollapseCell.h |
Overview
SCExpandCollapseCell is a special cell class that, once tapped, collapses its owner section’s contents into a single cell. When tapped again, it will expand the section’s contents to their original state.
Sample use: mySection.expandCollapseCell = [SCExpandCollapseCell cellWithExpandText:@“Expand Section” collapseText:@“Collapse Section” ownerSectionExpanded:FALSE];
See also: SCTableViewSection
Note: SCExpandCollapseCell is always displayed at the top of the section.
Tasks
Creation and Initialization
-
+ cellWithExpandText:collapseText:ownerSectionExpanded:
-
– initWithExpandText:collapseText:ownerSectionExpanded:
Configuration
-
expandText
property -
collapseText
property -
ownerSectionExpanded
property
Properties
collapseText
The text that will be displayed in the cell when the section is expanded.
@property (nonatomic, copy) NSString *collapseText
Declared In
SCExpandCollapseCell.h
Class Methods
cellWithExpandText:collapseText:ownerSectionExpanded:
Allocates and returns an initialized SCExpandCollapseCell given its expandText, collapseText, an initial owner section expand state.
+ (instancetype)cellWithExpandText:(NSString *)expandText collapseText:(NSString *)collapseText ownerSectionExpanded:(BOOL)expanded
Parameters
- expandText
The text that will be displayed in the cell when the section is collapsed.
- collapseText
The text that will be displayed in the cell when the section is expanded.
- expanded
The initial expanded state of the cell’s owner section.
Declared In
SCExpandCollapseCell.h
Instance Methods
initWithExpandText:collapseText:ownerSectionExpanded:
Returns an initialized SCExpandCollapseCell given its expandText, collapseText, an initial owner section expand state.
- (instancetype)initWithExpandText:(NSString *)expandText collapseText:(NSString *)collapseText ownerSectionExpanded:(BOOL)expanded
Parameters
- expandText
The text that will be displayed in the cell when the section is collapsed.
- collapseText
The text that will be displayed in the cell when the section is expanded.
- expanded
The initial expanded state of the cell’s owner section.
Declared In
SCExpandCollapseCell.h