Reputation: 923
I have 1 UIViewController with a UIScrollView as view. For each page of this scrollview I alloc 1 UIViewControllers and I add his view inside this Scrollview.
When I am going to rotate the device, rotation event in the sub viewcontrollers (that ones that have their views inside the scrollview) doesn't fire...
can anyone help me? thanks :)
Sergio
Upvotes: 0
Views: 619
Reputation: 12036
In your main ViewController method -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
Call
[yourSubViewController shouldAutorotateToInterfaceOrientation:interfaceOrientation];
Upvotes: 1