Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
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.
 

Attachments

  • SubViewRotation.zip
    23.6 KB · Views: 57
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.