On the ipad, in ios objective C, I am having problems with the rotation moves in one modal view. I give the position of the element in the shouldAutoRotate method and its parent view can rotate too, but when I rotate the modal view the elements don’t put in the correct place.
For more information, if I open the view in portrait mode I get this data:
<UIView: 0x72bc160; frame = (0 0; 768 1004); clipsToBounds = YES;
autoresize = W+H; layer = <CALayer: 0x13f324f0>
And in landscape mode:
<UIView: 0x1358f3b0; frame = (0 0; 768 748); clipsToBounds = YES;
autoresize = W+H; layer = <CALayer: 0x1358f3e0>>
But if I rotate the view the horizontal frame changes by vertical frame…
Am I doing something wrong?
I’ve had a lot of fun with view controller rotation. There are two things to keep in mind:
When these things happened to me, it was because the view controllers in the background got the rotation events, but the particular view controller I was presenting from was ignoring them and not passing them along to the modal view controller, leading to inconsistency.