Set padding for UITextField with UITextBorderStyleNone
I found a neat little hack to set the left padding for this exact situation. Basically, you set the leftView property of the UITextField to be an empty view of the size of the padding you want: UIView *paddingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)]; textField.leftView = paddingView; textField.leftViewMode = UITextFieldViewModeAlways; Worked like a … Read more