• 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
iPhone puzzle about rotation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iPhone puzzle about rotation


  • Subject: iPhone puzzle about rotation
  • From: David Rowland <email@hidden>
  • Date: Mon, 31 Jan 2011 17:16:53 -0800

I create a minimal view-based app from an Xcode template, and I implement these UIViewController methods,

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
   return YES;
}

- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
}


I put breakpoints on them, and they behave more of less as I expect:

1) shouldAutorotateToInterfaceOrientation  is called on launch.
2) When I rotate the device (Simulator) it is called again and then willRotateToInterfaceOrientation is called.

The same thing works in one of my applications.

My problem is with another application that works like this,

1) shouldAutorotateToInterfaceOrientation  is called on launch.
2) When I rotate the device, nothing happens.


Is there something that defeats the delivery of rotate events to a view controller?


thanks for any help,

David

_______________________________________________

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 puzzle about rotation
      • From: WT <email@hidden>
  • Prev by Date: Re: worker thread iterating over array - SLOW
  • Next by Date: Re: text orientation/positioning with layout manager
  • Previous by thread: New to internationalization
  • Next by thread: Re: iPhone puzzle about rotation
  • Index(es):
    • Date
    • Thread