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

Overview

This class functions as a cell with a UITextField control. The bound property of this cell must be of type NSString.

Tasks

Creation and Initialization

Configuration

  •   textField

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

    property

Properties

textField

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

@property (nonatomic, readonly) UITextField *textField

Declared In

SCTableViewCell.h

Class Methods

cellWithText:placeholder:boundObject:textFieldTextPropertyName:

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

+ (id)cellWithText:(NSString *)cellText placeholder:(NSString *)placeholder boundObject:(NSObject *)object textFieldTextPropertyName:(NSString *)propertyName

Parameters

cellText

The text that will appear in the cell’s textLabel.

placeholder

The placeholder string for UITextField.

object

The cell’s bound object (see SCTableViewCell class overview).

propertyName

The cell’s bound property name corresponding to the UITextField’s text. Property must be a readwrite property of type NSString.

Declared In

SCTableViewCell.h

Instance Methods

initWithText:placeholder:boundObject:textFieldTextPropertyName:

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

- (id)initWithText:(NSString *)cellText placeholder:(NSString *)placeholder boundObject:(NSObject *)object textFieldTextPropertyName:(NSString *)propertyName

Parameters

cellText

The text that will appear in the cell’s textLabel.

placeholder

The placeholder string for UITextField.

object

The cell’s bound object (see SCTableViewCell class overview).

propertyName

The cell’s bound property name corresponding to the UITextField’s text. Property must be a readwrite property of type NSString.

Declared In

SCTableViewCell.h