SCControlCell Class Reference
Inherits from | SCCustomCell : SCTableViewCell : UITableViewCell |
Declared in | SCTableViewCell.h |
Overview
This class functions as a base class for all cells that require user controls to be present inside their content view.
Tasks
Configuration
-
control
The control associated with the cell. Even though this property is readonly, feel free to customize any of the control’s properties.
property -
controlValue
The value of contained in the cell’s control.
property -
maxTextLabelWidth
The maximum width of the cell’s textLabel. Default: 200.
property -
controlIndentation
The indentation of the control from the cell’s left border. Default: 120.
property -
controlMargin
The margin between the control and the cell’s textLabel. Default: 10.
property -
– clearControl
Clears the control associated with the cell.
Internal Methods (should only be used by the framework or when subclassing)
-
– loadBoundValueIntoControl
Method should be overridden by subclasses to load the cell's bound value into their controls.
Properties
control
The control associated with the cell. Even though this property is readonly, feel free to customize any of the control’s properties.
@property (nonatomic, readonly) UIView *control
Discussion
Note: The type of the control has been choosen to be of type UIView instead of UIControl because not all user controls decend from UIControl (e.g. UITextView).
Declared In
SCTableViewCell.h
controlIndentation
The indentation of the control from the cell’s left border. Default: 120.
@property (nonatomic, readwrite) CGFloat controlIndentation
Discussion
This indentation keeps the control at a specific distance from the cell’s border unless the textLabel’s text exceeds this distance, in which case the control is moved accordingly to the right.
Declared In
SCTableViewCell.h
controlMargin
The margin between the control and the cell’s textLabel. Default: 10.
@property (nonatomic, readwrite) CGFloat controlMargin
Declared In
SCTableViewCell.h
controlValue
The value of contained in the cell’s control.
@property (nonatomic, readonly) NSObject *controlValue
Declared In
SCTableViewCell.h
Instance Methods
clearControl
Clears the control associated with the cell.
- (void)clearControl
Declared In
SCTableViewCell.h