SCTextViewCell Class Reference
Inherits from | SCControlCell : SCCustomCell : SCTableViewCell : UITableViewCell |
Declared in | SCTableViewCell.h |
Overview
This class functions as a cell with a UITextView control. The bound property of this cell must be of type NSString.
Tasks
Creation and Initialization
-
+ cellWithText:boundObject:textViewTextPropertyName:
Allocates and returns an initialized ‘SCTextViewCell’ given cell text, bound object, and a bound property name.
-
– initWithText:boundObject:textViewTextPropertyName:
Returns an initialized ‘SCTextViewCell’ given cell text, bound object, and a bound property name.
Configuration
-
textView
The UITextView control associated with the cell. Even though this property is readonly, feel free to customize any of the control’s properties.
property -
minimumHeight
The minimum height for textView.
property -
maximumHeight
The maximum height for textView.
property
Properties
maximumHeight
The maximum height for textView.
@property (nonatomic, readwrite) CGFloat maximumHeight
Declared In
SCTableViewCell.h
minimumHeight
The minimum height for textView.
@property (nonatomic, readwrite) CGFloat minimumHeight
Declared In
SCTableViewCell.h
Class Methods
cellWithText:boundObject:textViewTextPropertyName:
Allocates and returns an initialized ‘SCTextViewCell’ given cell text, bound object, and a bound property name.
+ (id)cellWithText:(NSString *)cellText boundObject:(NSObject *)object textViewTextPropertyName:(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 UITextView’s text. Property must be a readwrite property of type NSString.
Declared In
SCTableViewCell.h
Instance Methods
initWithText:boundObject:textViewTextPropertyName:
Returns an initialized ‘SCTextViewCell’ given cell text, bound object, and a bound property name.
- (id)initWithText:(NSString *)cellText boundObject:(NSObject *)object textViewTextPropertyName:(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 UITextView’s text. Property must be a readwrite property of type NSString.
Declared In
SCTableViewCell.h