SCTextFieldAttributes

@interface SCTextFieldAttributes : SCPropertyAttributes {
  NSString *placeholder;
  BOOL secureTextEntry;
  UITextAutocorrectionType autocorrectionType;
  UITextAutocapitalizationType autocapitalizationType;
}

This class is used to extend the definition of an ‘SCPropertyAttributes’ instance of type SCPropertyTypeTextField, thus allowing further customization of the generated control by the user.

Creation and Initialization

  • Allocates and returns an initialized ‘SCTextFieldAttributes’. *

    • - parameter: _placeholder The placeholder of the generated UITextField control. Set to nil to ignore.

    Declaration

    Objective-C

    + (instancetype)attributesWithPlaceholder:(NSString *)_placeholder;
  • Allocates and returns an initialized ‘SCTextFieldAttributes’. *

    • - parameter: _placeholder The placeholder of the generated UITextField control. Set to nil to ignore.
    • - parameter: secure Identifies whether the text field should hide the text being entered.
    • - parameter: autocorrection The auto-correction style for the text field.
    • - parameter: autocapitalization The auto-capitalization style for the text field.

    Declaration

    Objective-C

    + (instancetype)
        attributesWithPlaceholder:(NSString *)_placeholder
                  secureTextEntry:(BOOL)secure
               autocorrectionType:(UITextAutocorrectionType)autocorrection
           autocapitalizationType:(UITextAutocapitalizationType)autocapitalization;
  • Returns an initialized ‘SCTextFieldAttributes’. *

    • - parameter: _placeholder The placeholder of the generated UITextField control. Set to nil to ignore.

    Declaration

    Objective-C

    - (instancetype)initWithPlaceholder:(NSString *)_placeholder;
  • Returns an initialized ‘SCTextFieldAttributes’. *

    • - parameter: _placeholder The placeholder of the generated UITextField control. Set to nil to ignore.
    • - parameter: secure Identifies whether the text field should hide the text being entered.
    • - parameter: autocorrection The auto-correction style for the text field.
    • - parameter: autocapitalization The auto-capitalization style for the text field.

    Declaration

    Objective-C

    - (instancetype)initWithPlaceholder:(NSString *)_placeholder
                        secureTextEntry:(BOOL)secure
                     autocorrectionType:(UITextAutocorrectionType)autocorrection
                 autocapitalizationType:
                     (UITextAutocapitalizationType)autocapitalization;

Configuration