self.accountTextField.leftViewMode=UITextFieldViewModeAlways;
UIView*leftView1=[[UIViewalloc]initWithFrame:CGRectMake(0,0,20,50)];
self.accountTextField.leftView= leftView1;
希望能帮到遇到同样问题其他小伙伴。动动小手,鼓励下达若,点下小心心吧❤️ ~
self.accountTextField.leftViewMode=UITextFieldViewModeAlways;
UIView*leftView1=[[UIViewalloc]initWithFrame:CGRectMake(0,0,20,50)];
self.accountTextField.leftView= leftView1;
希望能帮到遇到同样问题其他小伙伴。动动小手,鼓励下达若,点下小心心吧❤️ ~
本文标题:三行代码实现UITextField的左边距
本文链接:https://www.haomeiwen.com/subject/pnnmvxtx.html
网友评论