so here's a fun little problem:
i have a view (clippingView) which clips it's subview (pictureView). the clippingView is centered on the screen by evaluating the size of the clipping view according to the screen's bounds, and is constantly rotating.
the problem occurs when the device's orientation changes. the clippingView is using an autoresizeMask in the hopes of remain centered with an orientation change. but because it is rotating, things get really crazy with the device's orientation changes.
any ideas how to solve this problem?
to see the effectiveness of using the autoresize mask without the rotation, just comment out //[self rotate]; in the code and reorientate the device - it will remain centered.
i have a view (clippingView) which clips it's subview (pictureView). the clippingView is centered on the screen by evaluating the size of the clipping view according to the screen's bounds, and is constantly rotating.
the problem occurs when the device's orientation changes. the clippingView is using an autoresizeMask in the hopes of remain centered with an orientation change. but because it is rotating, things get really crazy with the device's orientation changes.
any ideas how to solve this problem?
to see the effectiveness of using the autoresize mask without the rotation, just comment out //[self rotate]; in the code and reorientate the device - it will remain centered.