Currently I am setting a leftView with an image and I am finding that the image is too close to the text input view (which in this case is the standard UITextField text input view). Is there a way to shift the frame of the text input view slightly so as to increase the distance between it and the leftView?
Currently I am setting a leftView with an image and I am finding that
Share
You should be able to modify the
frameproperty for theUIImageViewyou’re assigning to theUITextField‘sleftView.For example you might be able to do something like this:
Note that you may also need to modify the
UIImageView‘scontentModeproperty to get the desired effect (e.g. you can useUIViewContentModeLeftto left-align the image orUIViewContentModeCenterto center-align it).