views:

86

answers:

1

If I have a view (and its controller) and I override the willAnimateRotationToInterfaceOrientation method so I can respond to autorotation events everything works fine and dandy. Now if I create another viewController and add its view to the first viewController's view via:

[firstViewController.view addSubview:secondViewController.view]

The secondViewController's willAnimateRotationToInterfaceOrientation method isn't called.

What gives?

Thanks, Sam

+1  A: 

The autorotation system doesn't work like this. Only one view controller will receive autorotation queries/events, and it's up to this view controller to inform sub controllers about the rotation.

Steven Canfield
Thanks for the answer, glad to know I wasn't doing something wrong.
Shizam