title: MBProgressHud is not changing with device orientation.?
body: <p>I am using MBProgressHud to show a loading indicator on a splash view but this does not change with device orientation. My code is:</p>
  
  <pre><code>splashView = [[UIImageView alloc] initWithFrame:self.window.frame];
  
   if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
   {
    splashView.image = [UIImage imageNamed:@"DefaultPad.png"];  
   }
   else
   {
      splashView.image = [UIImage imageNamed:@"Default.png"];  
   }
  
    hud = [[MBProgressHUD alloc]initWithView:splashView];
    [splashView addSubview:hud];
  
    hud.userInteractionEnabled=NO;
    hud.labelText = @"Loading...";
  
    [hud show:YES];
  
   [self.window addSubview:splashView];
   [self performSelector:@selector(Load_FirstView) withObject:nil afterDelay:3];
   [self.window makeKeyAndVisible];
  </code></pre>
  
  <p>and I have changed the line in <code>MBProgressHud.m</code> file from</p>
  
  <pre><code>- (void)deviceOrientationDidChange:(NSNotification *)notification { 
  
   NSLog(@"in device orientation ");
      UIView *superview = self.superview;
      if (!superview) {
          return;
      } else if ([superview isKindOfClass:[UIWindow class]]) {  // here changes have done
          [self setTransformForCurrentOrientation:YES];
      } else {
          self.bounds = self.superview.bounds;
          [self setNeedsDisplay];
      }
  }
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>- (void)deviceOrientationDidChange:(NSNotification *)notification { 
  
   NSLog(@"in device orientation ");
      UIView *superview = self.superview;
      if (!superview) {
          return;
      } else if ([superview isKindOfClass:[UIImageView class]]) {
          [self setTransformForCurrentOrientation:YES];
      } else {
          self.bounds = self.superview.bounds;
          [self setNeedsDisplay];
      }
  }
  </code></pre>
  
  <p>How can I get the loading indicator to rotate with device orientation?</p>