rotating UIView without changing size
rotating UIView without changing size
- Subject: rotating UIView without changing size
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 03 Aug 2012 22:34:29 +0700
I have a subclass of UIViewController which displays a small view in the center of the display.
shouldAutorotateToInterfaceOrientation: returns YES.
The problem:
when I rotate the device, the centered view rotates as it should. But it also changes its size to full-screen.
The (bad) workaround:
in didRotateFromInterfaceOrientation: I set the frame back to a sensible value.
Result: when I rotate the device, the view rotates, blows up to fill the screen, then snaps back to its real size.
Is there a way to tell the ViewController to NOT mess with the size of its view (it should just exchange width and height)?
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden