loading UIView in correct orientation
loading UIView in correct orientation
- Subject: loading UIView in correct orientation
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 03 Aug 2012 23:22:17 +0700
I have a subclass of UIViewController which displays a small view in the center of the display.
shouldAutorotateToInterfaceOrientation: returns YES.
This view is only shown on demand.
The problem:
If the device is in Portrait-Up position when the ViewController is created then everything is fine.
Otherwise the centered view is loaded in the wrong position, and I have to rotate the device by 90° and back again, to get the centered view right.
Is there a way to force the ViewController to apply the proper rotation when it is initially loaded?
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