Skip to main content
Inspiring
April 24, 2012
Question

iOS input textfield rotation.

  • April 24, 2012
  • 2 replies
  • 2945 views

I am developing an app for both iOS and Android. When my app launches I have a login screen requiring a user to fill out a form.... but the form is slightly angled, about 30 degrees to conform to the graphics provided to me.

On Android the textfield appears correctly and as I type I can see the input appearing in the textfield at an angle.

On iOS it is completely ignoring the angle and setting the rotation back to 0.... and now the textfield is no longer aligned with my graphics. I understand that for iOS, it overlays its own textfield and tries to match color, size, and etc... but apparently just not the angle.

Is it possible to add rotation to an input textfield on iOS?

This topic has been closed for replies.

2 replies

Inspiring
May 5, 2012

Not an answer to the original question, but a workaround: you can use a "hidden" (ie, y=-1000) text-input to grab the typed text and a 30* rotated dynamic textfield to display the results.

Inspiring
May 14, 2012

@julifos, not sure I'm following you... but the problem with this is that iOS doesn't apply what you are typing into the textfield until after the softkeyboard goes away.... which is the way it's behaving now anyway.

Inspiring
April 26, 2012

bump....no one has ever had a rotated input textfield on iOS?

sinious
Legend
April 26, 2012

Have you tried nesting the TextField inside a Sprite or MovieClip and rotating that instead? I honestly haven't rotated a textfield in any app I've made.. But containers typically solve problems like this.

Inspiring
April 26, 2012

sadly yes I have tried this but it doesn't work either... specifically this is only happening to input textfields... regular dynamic textfields are fine.