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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to