UIView* view1 = [[UIView alloc]initWithFrame:CGRectMake(0,0,30,30)];
view1.backgroundColor=[UIColor yellowColor];
UIView* view2 = [[UIView alloc]initWithFrame:CGRectMake(0,0,30,30)];
view2.backgroundColor=[UIColor yellowColor];
_textField1.leftView = view1;
_textField1.leftViewMode = UITextFieldViewModeAlways;
_textField2.leftView = view2;
_textField2.leftViewMode = UITextFieldViewModeAlways;
UITextFiedl 左侧设置小图标 leftview
最新推荐文章于 2023-05-29 21:08:26 发布