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.
-
Undocumented
Declaration
Objective-C
NSString *placeholder
-
Undocumented
Declaration
Objective-C
BOOL secureTextEntry
-
Undocumented
Declaration
Objective-C
UITextAutocorrectionType autocorrectionType
-
Undocumented
Declaration
Objective-C
UITextAutocapitalizationType autocapitalizationType
-
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;
-
The placeholder of the generated UITextField control. Set to nil to ignore.
Declaration
Objective-C
@property (nonatomic, copy) NSString *placeholder;
-
Identifies whether the text field should hide the text being entered. Default: FALSE.
Declaration
Objective-C
@property (nonatomic) BOOL secureTextEntry;
-
The auto-correction style for the text field. Default: UITextAutocorrectionTypeDefault.
Declaration
Objective-C
@property (nonatomic) UITextAutocorrectionType autocorrectionType;
-
The auto-capitalization style for the text field. Default: UITextAutocapitalizationTypeSentences.
Declaration
Objective-C
@property (nonatomic) UITextAutocapitalizationType autocapitalizationType;