CATransform3DMakeRotation in landscape mode
Hi,
I've got some code that does a 3D rotation transformation on my UIViewController's layer. When my phone is in portrait orientation, my code works great. But when I'm in landscape orientation, I get unexpected rotations.
For example, if I set my transform to CATransform3DIdentity and run this code in landscape orientation, the behavior is equivalent to doing a 90 degree rotation around the z-axis in portrait orientation. The same code in portrait mode does absolutely nothing (as you'd expect).
I can't figure out what's going on. Can anyone enlighten me? I'd really like to understand this behavior.
TIA,
Polly
|