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

Internal Methods (should only be used by the framework or when subclassing)

Properties

control

The control associated with the cell. Assiging a control automatically configures it and adds it to the cell’s contentView.

@property (nonatomic, strong) IBOutlet 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

controlCreatedInIB

Returns TRUE if the cell’s control has been created in Interface Builder.

@property (nonatomic, readonly) BOOL controlCreatedInIB

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

maxTextLabelWidth

The maximum width of the cell’s textLabel. Default: 200.

@property (nonatomic, readwrite) CGFloat maxTextLabelWidth

Declared In

SCTableViewCell.h

Instance Methods

clearControl

Clears the control associated with the cell.

- (void)clearControl

Declared In

SCTableViewCell.h

configureControl

Method should be overridden by subclasses to configure the cell's control. 
- (void)configureControl

Declared In

SCTableViewCell.h

expectedControlClass

Method should be overridden by subclasses to return the expected class of the cell's control. Defailt: returns [UIView class] 
- (Class)expectedControlClass

Declared In

SCTableViewCell.h

loadBoundValueIntoControl

Method should be overridden by subclasses to load the cell's bound value into its control. 
- (void)loadBoundValueIntoControl

Declared In

SCTableViewCell.h