SCSwitchCell Class Reference
Inherits from | SCControlCell : SCCustomCell : SCTableViewCell : UITableViewCell |
Declared in | SCTableViewCell.h |
Overview
This class functions as a cell with a UISwitch control. The bound property of this cell must be of type NSNumber or BOOL.
Class Methods
cellWithText:boundObject:switchOnPropertyName:
Allocates and returns an initialized SCSwitchCell given cell text, bound object, and a bound property name.
+ (instancetype)cellWithText:(NSString *)cellText boundObject:(NSObject *)object switchOnPropertyName:(NSString *)propertyName
Parameters
- cellText
The text that will appear in the cell’s textLabel.
- object
The cell’s bound object (see SCTableViewCell class overview).
- propertyName
The cell’s bound property name corresponding to the UISwitch’s on value. Property must be a readwrite property of type NSNumber.
Declared In
SCTableViewCell.h
Instance Methods
initWithText:boundObject:switchOnPropertyName:
Returns an initialized SCSwitchCell given cell text, bound object, and a bound property name.
- (instancetype)initWithText:(NSString *)cellText boundObject:(NSObject *)object switchOnPropertyName:(NSString *)propertyName
Parameters
- cellText
The text that will appear in the cell’s textLabel.
- object
The cell’s bound object (see SCTableViewCell class overview).
- propertyName
The cell’s bound property name corresponding to the UISwitch’s on value. Property must be a readwrite property of type NSNumber.
Declared In
SCTableViewCell.h