iOS - UITextField左边留白

解决办法是设置UITextField的leftView:


_field.leftView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 10, 0)];  

_field.leftViewMode = UITextFieldViewModeAlways;

你可能感兴趣的:(iOS - UITextField左边留白)