2019独角兽企业重金招聘Python工程师标准>>>
//设置文本框左边的viewUITextField *textField = [[UITextField alloc]init];textField.frame = CGRectMake(10, 30, 300, 30);[self.view addSubview:textField];textField.leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 8, 0)];//设置显示模式为永远显示(默认不显示)textField.leftViewMode = UITextFieldViewModeAlways;