The UI of my application is very similar to the PageControl example. Upon implementing it, I ran into an issue where I cannot get the rotation events. I then went to the PageControl example and just tried to add the rotation method to it. The example is:
iPhone Dev Center
I go to the view and add:
-(BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation
{
returnYES;
}
And set a breakpoint. It never gets called.
The way that this sample works is you have the window, and on the window is a scrollview. As you swipe your finger across the screen, the view is updated with different colors, graphics and text. I tried adding this method to the window, scrollview and view, all to no avail.
I think the right place to put it is the scrollview (the one that encapsulates the swiping view), and am using the following method:
-(BOOL)scrollView

UIScrollView*)scrollView shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation
{
returnYES;
}
So, first of all, is this the correct place to put this in the PageControl example? If so, is this the right signature for the method?
Thanks.