147                       :(UIView *)view
  148{
  149  [self setRotation:nil];
  150 
  151  if ([self.subviews containsObject:view])
  152    return;
  153 
  154  if (self.hidden)
  155  {
  156    _previousKeyWindow = [[[UIApplication sharedApplication] keyWindow] retain];
  157    self.alpha = 0.0f;
  158    self.hidden = NO;
  159    self.userInteractionEnabled = YES;
  160    [self makeKeyWindow];
  161  }
  162 
  163  if (self.subviews.count > 0)
  164  {
  165    ((UIView *)[self.subviews lastObject]).userInteractionEnabled = NO;
  166  }
  167 
  168  if (_backgroundImage)
  169  {
  170    UIImageView *backgroundView = [[UIImageView alloc] initWithImage:_backgroundImage];
  171    backgroundView.frame = self.bounds;
  172    backgroundView.contentMode = UIViewContentModeScaleToFill;
  173    [self addSubview:backgroundView];
  174    [backgroundView release];
  175    [_backgroundImage release];
  176    _backgroundImage = nil;
  177  }
  178 
  179  [self addSubview:view];
  180}