views:

67

answers:

0

Hi,

I am trying to apply a slight rotation to a UITextfield by assigning a CGAffineTransformation rotation for a few degrees. This works, and the text editing also adheres to the rotated textfield, however the text is offset within the textfield to the bottom. This increases with the angle, and with 45 degrees (M_PI/4) it is almost off the visible textfield.

What am I missing here to have the text centered correctly within the textfield also after applying the rotation?

Thx, habitoti