I\'ve implemented this method in my code to know when an interface orientation change will occur:
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrient
Since iOS 5 and higher you should build you view controllers hierarchy (using -addChildViewController:). Then child view controllers begin to call -willRotateToInterfaceOrientation:interfaceOrientation: and other interface related methods again (because parent controller will notify them about UI orientation changes).
Please, do not use any 'dirty' methods.
Useful documentation: Apple docs about 'addChildViewController:'