My question is as simple as the title, but here\'s a little more:
I have a UITextField, on which I\'ve set the background image. The problem is that the text hugs so
If you don't want to create @IBOutlet's could simply subclass (answer in Swift):
class PaddedTextField: UITextField { override func awakeFromNib() { super.awakeFromNib() let spacerView = UIView(frame:CGRect(x: 0, y: 0, width: 10, height: 10)) leftViewMode = .always leftView = spacerView } }