• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Rotating a Nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: What is the equivalent Cocoa window level of Carbon kUtilityWindowClass?
  • Next by Date: Resolved: Baffled by AVCaptureVideoPreviewLayer
  • Previous by thread: Localization issue with ES-MX
  • Next by thread: Re: cocoabuilder closed?
  • Index(es):
    • Date
    • Thread