Editorial Note: I’d been planning to write about glossy button backgrounds today, but I appear to be buttoned out. I’ll pick the topic up again by Friday, but, for now, something lighter. And shorter.
Let’s say you want to adjust (horizontal) text alignment in a UITextField
. No problem – you use the textAlignment
property. Now, suppose you want to control vertical text alignment in that field …. there doesn’t seem to be a property for that.
Well, there is, but it’s buried in the UIControl
ancestor class. The contentVerticalAlignment
property is the one you want. I suppose it’s not unreasonable to put this property here, but since it took me a while to find it, I thought I’d mention it.