• 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
Re: iPhone: Autorotation for a subview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone: Autorotation for a subview


  • Subject: Re: iPhone: Autorotation for a subview
  • From: "Hank Heijink (Mailinglists)" <email@hidden>
  • Date: Tue, 22 Dec 2009 13:04:37 -0500

On Dec 22, 2009, at 12:51 PM, Eric E. Dolecki wrote:

> I have a view which controls it's UI when rotated. However, if there is a
> subView in place, it rotates and I'd like to control it's UI too. In my
> subView the willAnimateRotationToInterfaceOrientation doesn't get fired. I
> set up the shouldAutorotateToInterfaceOrientation. Does my main view need to
> call something in my subView to get this to work? I'd think the subView
> would get the event too but it doesn't.

I assume you mean -willAnimateRotationToInterfaceOrientation:duration: which is a method on UIViewController, not UIView. If not, your signature is wrong and that method would never be called.

You'll need to manage your subviews from the controller when it receives the message. That's what the controller is for: views themselves are not aware of rotations.

Best,
Hank

_______________________________________________

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

  • Follow-Ups:
    • Re: iPhone: Autorotation for a subview
      • From: "Eric E. Dolecki" <email@hidden>
References: 
 >iPhone: Autorotation for a subview (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: iPhone: Autorotation for a subview
  • Next by Date: Re: iPhone: Autorotation for a subview
  • Previous by thread: Re: iPhone: Autorotation for a subview
  • Next by thread: Re: iPhone: Autorotation for a subview
  • Index(es):
    • Date
    • Thread