Rotating a Nib
Rotating a Nib
- Subject: Rotating a Nib
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 02 Aug 2012 23:27:49 +0700
I have an iOS (5.1) program which has a view with some OpenGL animations, called GLView (subclass of UIView).
When the user taps the screen, a Nib view is loaded (which contains some sliders and buttons).
On the iPhone this nib is always displayed in portrait mode. This is ok.
But on the iPad, the Slider-Nib should rotate according to the orientation of the device.
UIViewController has: shouldAutorotateToInterfaceOrientation: but my Slider-View currently has no ViewController - my GLView just does: [ self addSubview: sliderView ] or: [ sliderView removeFromSuperview ].
And the GLView also has no ViewController - it is defined in the MainWIndow.xib and is the only view of the app.
Note: the GLView should not rotate, only it's subview, the sliderView.
Do I need a SliderViewController, or are there other ways to make my SliderView rotate according to the orientation of the device?
Kind regards,
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