iPhone OS: Rotate just the button images, not the views
Posted
by Jongsma
on Stack Overflow
See other posts from Stack Overflow
or by Jongsma
Published on 2010-04-16T19:29:26Z
Indexed on
2010/04/16
19:33 UTC
Read the original article
Hit count: 275
Hi,
I am developing an iPad application which is basically a big drawing canvas with a couple of button at the side. (Doesn't sound very original, does it? :P)
No matter how the user holds the device, the canvas should remain in place and should not be rotated. The simplest way to achieve this would be to support just one orientation.
However, I would like the images on the buttons to rotate (like in the iPhone camera app) when the device is rotated. UIPopoverControllers should also use the users current orientation (and not appear sideways).
What is the best way to achieve this?
(I figured I could rotate the canvas back into place with an affineTransform, but I don't think it is ideal.)
Thanks in advance!
© Stack Overflow or respective owner