I don't want to subclass the UITextField class just to get text padding.
I want to do it using the appearance proxy.
I tried this:
UIView *padding = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 5, 2)];
[[UITextField appearance] setLeftView:padding];
[[UITextField appearance] setLeftViewMode:UITextFieldViewModeAlways];
unfortunately, if i put this code in my app delegate, any view controller that has a uitextfield in it, fails to load the view
how can I add padding to the textfield without subclassing it ?