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
Sometimes the leftView of the textField is a Apple's magnifying glass image. If so, you can set an indent like this:
UIView *leftView = textField.leftView;
if (leftView && [leftView isKindOfClass:[UIImageView class]]) {
leftView.contentMode = UIViewContentModeCenter;
leftView.width = 20.0f; //the space you want indented.
}