iPhone puzzle about rotation
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