Hi all!
my app is set on landscape mode and if I insert a UITextField the text field is drawn correctly, but the text inside is rotated like the app was on portrait mode...
can you help me??
thanks
UITextField rotated
(4 posts) (3 voices)-
Posted 2 years ago #
-
use a transform, like this:
myTextField.transfom = CGAffineTransformRotate(myTextField.transform, 90);I'm just guessing here, I hope this would work or at least help you.
Natan Avra.Posted 2 years ago # -
hey,
natanavra's method would work but its not going to be 90 and you are gonna have to guess. what im doing is this:
myTextField.transform = CGAffineTransformMakeRotation(M_PI * (90.0 / 180.0));-Lars
Posted 2 years ago # -
thanks! it works fine!!
regards!
Posted 2 years ago #
Reply
You must log in to post.