Inherits from SCControlCell : SCCustomCell : SCTableViewCell : UITableViewCell
Declared in SCTableViewCell.h

Overview

This class functions as a cell with a UILabel control. The bound property of this cell can be of any type the decends from NSObject.

Tasks

Creation and Initialization

Configuration

  •   label

    The UILabel control associated with the cell. Even though this property is readonly, feel free to customize any of the control’s properties.

    property

Properties

label

The UILabel control associated with the cell. Even though this property is readonly, feel free to customize any of the control’s properties.

@property (nonatomic, readonly) UILabel *label

Declared In

SCTableViewCell.h

Class Methods

cellWithText:boundObject:labelTextPropertyName:

Allocates and returns an initialized ‘SCLabelCell’ given cell text, bound object, and a bound property name.

+ (id)cellWithText:(NSString *)cellText boundObject:(NSObject *)object labelTextPropertyName:(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 UILabel’s text. Property must be of type NSString and can be a readonly property.

Declared In

SCTableViewCell.h

Instance Methods

initWithText:boundObject:labelTextPropertyName:

Returns an initialized ‘SCLabelCell’ given cell text, bound object, and a bound property name.

- (id)initWithText:(NSString *)cellText boundObject:(NSObject *)object labelTextPropertyName:(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 UILabel’s text. Property must be of type NSString and can be a readonly property.

Declared In

SCTableViewCell.h