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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]