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.

Creation and Initialization

  • 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;

Configuration