UI_02 基础视图、程序启动流程
⼀、UITextField UITextField(输⼊框):是控制⽂本输⼊和显⽰的控件 UITextField核⼼功能主要包含3个⽅⾯: ⽂本显⽰ 输⼊控制 外观配置 1、⽂本显⽰ // textField.text = @" 你好 "; // textField.textAlignment = NSTextAlignmentCenter; textField. textColor = [ UIColor blueColor ]; textField. placeholder = @" 请输入我爱编程 " ; textField. font = [ UIFont fontWithName : @"" size : 20 ]; 2、输⼊控制 textField. enabled = YES ; textField. clearsOnBeginEditing = NO ; textField. secureTextEntry = YES ; textField. keyboardType = UIKeyboardTypeDefault ; textField. returnKeyType = UIReturnKeyDefault ; // 自定义键盘视图 UIView * inputView = [[ UIView alloc ] initWithFrame : CGRectMake