I set UIImageView as leftView on a UITextField like this:
UIImageView *envelopeView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.height*.1, self.height*.1)]; envelopeView.image = [UIImage imageNamed:@"envelope.png"]; envelopeView.contentMode = UIViewContentModeScaleAspectFit; envelopeView.bounds = CGRectInset(envelopeView.frame, 15, 10); self.emailAddress.leftView = envelopeView; self.emailAddress.leftViewMode = UITextFieldViewModeAlways;
who gets the following from me:

As you can see, the left image size goes straight to the left edge of the button, although I tried to set the insert. How can I move this envelope so that it gets indented from all sides?
Update: I tried the suggested answer about changing the UIImageView frame UIImageView this, but the envelope is still aligned on the left side at the border of the UITextField :
CGFloat padding = 20; UIImageView *envelopeView = [[UIImageView alloc] initWithFrame:CGRectMake(3*padding, padding, self.height*.1-padding, self.height*.1-padding)];
source share