SCTextFieldAttributes Class Reference
Inherits from | SCPropertyAttributes : NSObject |
Declared in | SCPropertyAttributes.h |
Overview
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.
Tasks
Creation and Initialization
-
+ attributesWithPlaceholder:
-
+ attributesWithPlaceholder:secureTextEntry:autocorrectionType:autocapitalizationType:
-
– initWithPlaceholder:
-
– initWithPlaceholder:secureTextEntry:autocorrectionType:autocapitalizationType:
Configuration
-
placeholder
property -
secureTextEntry
property -
autocorrectionType
property -
autocapitalizationType
property
Properties
autocapitalizationType
The auto-capitalization style for the text field. Default: UITextAutocapitalizationTypeSentences.
@property (nonatomic, readwrite) UITextAutocapitalizationType autocapitalizationType
Declared In
SCPropertyAttributes.h
autocorrectionType
The auto-correction style for the text field. Default: UITextAutocorrectionTypeDefault.
@property (nonatomic, readwrite) UITextAutocorrectionType autocorrectionType
Declared In
SCPropertyAttributes.h
Class Methods
attributesWithPlaceholder:
Allocates and returns an initialized ‘SCTextFieldAttributes’.
+ (instancetype)attributesWithPlaceholder:(NSString *)_placeholder
Parameters
- _placeholder
The placeholder of the generated UITextField control. Set to nil to ignore.
Declared In
SCPropertyAttributes.h
attributesWithPlaceholder:secureTextEntry:autocorrectionType:autocapitalizationType:
Allocates and returns an initialized ‘SCTextFieldAttributes’.
+ (instancetype)attributesWithPlaceholder:(NSString *)_placeholder secureTextEntry:(BOOL)secure autocorrectionType:(UITextAutocorrectionType)autocorrection autocapitalizationType:(UITextAutocapitalizationType)autocapitalization
Parameters
- _placeholder
The placeholder of the generated UITextField control. Set to nil to ignore.
- secure
Identifies whether the text field should hide the text being entered.
- autocorrection
The auto-correction style for the text field.
- autocapitalization
The auto-capitalization style for the text field.
Declared In
SCPropertyAttributes.h
Instance Methods
initWithPlaceholder:
Returns an initialized ‘SCTextFieldAttributes’.
- (instancetype)initWithPlaceholder:(NSString *)_placeholder
Parameters
- _placeholder
The placeholder of the generated UITextField control. Set to nil to ignore.
Declared In
SCPropertyAttributes.h
initWithPlaceholder:secureTextEntry:autocorrectionType:autocapitalizationType:
Returns an initialized ‘SCTextFieldAttributes’.
- (instancetype)initWithPlaceholder:(NSString *)_placeholder secureTextEntry:(BOOL)secure autocorrectionType:(UITextAutocorrectionType)autocorrection autocapitalizationType:(UITextAutocapitalizationType)autocapitalization
Parameters
- _placeholder
The placeholder of the generated UITextField control. Set to nil to ignore.
- secure
Identifies whether the text field should hide the text being entered.
- autocorrection
The auto-correction style for the text field.
- autocapitalization
The auto-capitalization style for the text field.
Declared In
SCPropertyAttributes.h