Sub-viewController doesn't get autorotation notifications, bug?

Posted by Shizam on Stack Overflow See other posts from Stack Overflow or by Shizam
Published on 2010-03-09T03:21:45Z Indexed on 2010/03/09 5:21 UTC
Read the original article Hit count: 217

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk