UITextField

作者: 风冰武 | 来源:发表于2019-02-21 19:31 被阅读0次
//54行
@interface UITextField : UIControl <UITextInput, NSCoding, UIContentSizeCategoryAdjusting>

//文本          56行
@property(nullable, nonatomic,copy)   NSString               *text;               

//文本字段显示的样式文本          57行
@property(nullable, nonatomic,copy)   NSAttributedString     *attributedText; 

//字体颜色          58行
@property(nullable, nonatomic,strong) UIColor                *textColor;        

//字体大小          59行
@property(nullable, nonatomic,strong) UIFont                 *font;    

//对齐方式          60行
@property(nonatomic)        NSTextAlignment         textAlignment;       

//边框样式          61行
@property(nonatomic)        UITextBorderStyle       borderStyle;        

//文本的默认属性          62行
@property(nonatomic,copy)   NSDictionary<NSAttributedStringKey,id> *defaultTextAttributes;

//占位符          64行
@property(nullable, nonatomic,copy)   NSString               *placeholder;   

//占位符的样式文本          65行
@property(nullable, nonatomic,copy)   NSAttributedString     *attributedPlaceholder; 

//是否清除所有文本          66行
@property(nonatomic) BOOL   clearsOnBeginEditing; 

//指示是否应减小字体大小, 以便将文本字符串放入文本字段的边框中          67行
@property(nonatomic)        BOOL adjustsFontSizeToFitWidth; 

//68行
@property(nonatomic)        CGFloat  minimumFontSize;      

//代理
@property(nullable, nonatomic,weak)   id<UITextFieldDelegate> delegate;    

//70行
@property(nullable, nonatomic,strong) UIImage *background;     

//71行
@property(nullable, nonatomic,strong) UIImage                *disabledBackground;   

//指示文本字段当前是否处于编辑模式
@property(nonatomic,readonly,getter=isEditing) BOOL editing;

      
         
       










































          



相关文章

网友评论

    本文标题:UITextField

    本文链接:https://www.haomeiwen.com/subject/rebdyqtx.html