issue about willAnimateRotate and didRotateFrom when doing an rotation
<p>What I am having so far is</p>

<pre><code>-(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
    NSLog(@"willAnimateRotationToInterfaceOrientation");
    if(toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) {
        NSLog(@"PortraitUpsideDown");
        // Do method A
    } else {
        [[self.view subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
        // Do method B
    } 
}
</code></pre>

<p>and</p>

<pre><code>-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
    NSLog(@"didRotateFromInterfaceOrientation");
    if( fromInterfaceOrientation == UIInterfaceOrientationPortrait || fromInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown){
        NSLog(@"OrientationPortrait or PortraitUpsideDown");
        [[self.view subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
        // Do method B
    } else {
        NSLog(@"From else");
        [[self.view subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
        // Do method A
    }
}
</code></pre>

<p>My logic is after hitting the RUN from xcode, <code>willAnimateRotationToInterfaceOrientation:</code> is going to be called because I set <strong>Supported Device Orientation</strong> to be <strong>UpsideDown</strong> from <strong>Summary</strong> of <strong>MyApp.xcodeproj</strong>. Moreover, I also think that <code>didRotateFromInterfaceOrientation:</code> should not be called because we have just started the app yet. It means there are no previous states at all. </p>

<p>Unfortunately, this is what I got after doing the debugger</p>

<blockquote>
  <p>2012-02-11 12:04:08.776 MyApp[7505:10703] willAnimateRotationToInterfaceOrientation :</p>
  
  <p>2012-02-11 12:04:08.776 MyApp[7505:10703] PortraitUpsideDown</p>
  
  <p>2012-02-11 12:04:08.778 MyApp[7505:10703] didRotateFromInterfaceOrientation :</p>
  
  <p>2012-02-11 12:04:08.779 MyApp[7505:10703] OrientationPortrait or
  PortraitUpsideDown</p>
</blockquote>

<p>I am getting lost now. Does anyone have any ideas about the issue, please help. Thanks.</p>
