views:

15

answers:

0

Hey guys,

I'm making my first iPad app, and because we have to support all orientations in order to comply with the H.I. guidelines, I'm learning about the autoresize mask thing.

I was just wondering if anybody could give me advice on how to ensure that an element maintains its aspect ratio upon rotating?

So, let's say I have a square button (150x150px) in portrait mode, and when it rotates I want it to alter its height based on the height of the orientation (it will become smaller...) I want it to automatically adjust its width so that it stays in that ratio.

Is this possible, or will I have to do it programatically (which is not as attractive when you see it done)

Thanks, Dwaine