SCTextViewAttributes
@interface SCTextViewAttributes : SCPropertyAttributes {
CGFloat minimumHeight;
CGFloat maximumHeight;
BOOL editable;
BOOL autoResize;
}
This class is used to extend the definition of an ‘SCPropertyAttributes’ instance of type SCPropertyTypeTextView, thus allowing further customization of the generated control by the user.
-
Undocumented
Declaration
Objective-C
CGFloat minimumHeight -
Undocumented
Declaration
Objective-C
CGFloat maximumHeight -
Undocumented
Declaration
Objective-C
BOOL editable -
Undocumented
Declaration
Objective-C
BOOL autoResize
-
Allocates and returns an initialized ‘SCTextViewAttributes’. *
- - parameter: minHeight The minimum height of the generated UITextView control. Set to a negative value to ignore.
- - parameter: maxHeight The maximum height of the generated UITextView control. Set to a negative value to ignore.
- - parameter: _autoResize Determines whether the generated UITextView control will auto resize.
- - parameter: _editable Determines whether the generated UITextView control will be editable.
Declaration
Objective-C
+ (instancetype)attributesWithMinimumHeight:(CGFloat)minHeight maximumHeight:(CGFloat)maxHeight autoResize:(BOOL)_autoResize editable:(BOOL)_editable; -
Returns an initialized ‘SCTextViewAttributes’. *
- - parameter: minHeight The minimum height of the generated UITextView control. Set to a negative value to ignore.
- - parameter: maxHeight The maximum height of the generated UITextView control. Set to a negative value to ignore.
- - parameter: _autoResize Determines whether the generated UITextView control will auto resize.
- - parameter: _editable Determines whether the generated UITextView control will be editable.
Declaration
Objective-C
- (instancetype)initWithMinimumHeight:(CGFloat)minHeight maximumHeight:(CGFloat)maxHeight autoResize:(BOOL)_autoResize editable:(BOOL)_editable;
-
The minimum height of the generated UITextView control. Set to a negative value to ignore.
Declaration
Objective-C
@property (nonatomic) CGFloat minimumHeight; -
The maximum height of the generated UITextView control. Set to a negative value to ignore.
Declaration
Objective-C
@property (nonatomic) CGFloat maximumHeight; -
Determines whether the generated UITextView control will auto resize.
Declaration
Objective-C
@property (nonatomic) BOOL autoResize; -
Determines whether the generated UITextView control will be editable.
Declaration
Objective-C
@property (nonatomic) BOOL editable;
View on GitHub
Install in Dash
SCTextViewAttributes Class Reference