I wanted to use a custom background for my UITextFields
. This works fine except for the fact that I have to use UITextBorderStyleNone
to make it look pretty. This forces the text to stick to the left without any padding.
Can I set a padding manually so that it looks similar to UITextBorderStyleRoundedRect
except for using my custom background image?
转载于:https://stackoverflow.com/questions/3727068/set-padding-for-uitextfield-with-uitextborderstylenone