SCLabelCell

@interface SCLabelCell : SCControlCell

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.

Creation and Initialization

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

    • - parameter: cellText The text that will appear in the cell’s textLabel.
    • - parameter: object The cell’s bound object (see SCTableViewCell class overview).
    • - parameter: 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.

    Declaration

    Objective-C

    + (instancetype)cellWithText:(NSString *)cellText
                     boundObject:(NSObject *)object
           labelTextPropertyName:(NSString *)propertyName;
  • Returns an initialized ‘SCLabelCell’ given cell text, bound object, and a bound property name.

    • - parameter: cellText The text that will appear in the cell’s textLabel.
    • - parameter: object The cell’s bound object (see SCTableViewCell class overview).
    • - parameter: 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.

    Declaration

    Objective-C

    - (instancetype)initWithText:(NSString *)cellText
                     boundObject:(NSObject *)object
           labelTextPropertyName:(NSString *)propertyName;

Configuration

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

    Declaration

    Objective-C

    @property (nonatomic, readonly) UILabel *label;

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

  • Method should be overriden by subclasses (instead of loadBoundValueIntoControl) to load the label’s bound value.

    Declaration

    Objective-C

    - (void)loadBoundValueIntoLabel;