UITextField 的属性

来源:互联网 发布:002174游族网络 编辑:程序博客网 时间:2024/06/05 02:02

@protocol UITextInputTraits <NSObject>


@optional


@property(nonatomic)UITextAutocapitalizationType autocapitalizationType;// default is UITextAutocapitalizationTypeSentences

@property(nonatomic)UITextAutocorrectionType autocorrectionType;        // default is UITextAutocorrectionTypeDefault

@property(nonatomic) UITextSpellCheckingType spellCheckingTypeNS_AVAILABLE_IOS(5_0); // default is UITextSpellCheckingTypeDefault;

@property(nonatomic)UIKeyboardType keyboardType;                        // default is UIKeyboardTypeDefault

@property(nonatomic)UIKeyboardAppearance keyboardAppearance;            // default is UIKeyboardAppearanceDefault

@property(nonatomic)UIReturnKeyType returnKeyType;                      // default is UIReturnKeyDefault (See note under UIReturnKeyType enum)

@property(nonatomic)BOOL enablesReturnKeyAutomatically;                 // default is NO (when YES, will automatically disable return key when text widget has zero-length contents, and will automatically enable when text widget has non-zero-length contents)

@property(nonatomic,getter=isSecureTextEntry)BOOL secureTextEntry;       // default is NO


@end


原创粉丝点击