I have seen this post Text inset for UITextField? and am still not able to figure it out.
I want a UITextField
that has is 80.0 tall. I want the text to be 40.0 below the top of the UITextField
, 20.0 tall, leaving 20.0 below the text as padding. My current code is.
let textBounds: CGRect = CGRect(x: 0, y: 40, width: self.width, height: 20)
self.editingRectForBounds(textBounds)
self.textRectForBounds(textBounds)
The UITextField
is subclassed and currently I believe the text has 30.0 padding above and below and is 20.0 tall or vertically centered within the UITextField
.