解决办法是设置UITextField的leftView:
_field.leftView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 10, 0)];
_field.leftViewMode = UITextFieldViewModeAlways;
解决办法是设置UITextField的leftView:
_field.leftView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 10, 0)];
_field.leftViewMode = UITextFieldViewModeAlways;
本文标题:iOS - UITextField左边留白
本文链接:https://www.haomeiwen.com/subject/fjlvkftx.html
网友评论