for the query of methods of rotation
<p>I have 1 UIViewController.</p>

<p>in that i wrote,</p>

<pre><code>- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
   NSLog(@"A");
} in UIViewController.

- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
    NSLog(@"b");
}
</code></pre>

<p>but this method is not called
why is it so?</p>
