title: How to slide a UIView right above a UITabBar
body: <p>I have a UIView that I want to slide from behind a UITabBar to be position right on top of it.</p>
  
  <p>This doesn't work. My view does not appear.</p>
  
  <pre><code>- (void)showNotificationBar
  {   
      CGRect frame = CGRectMake(0, 500, 320, 32);
      frame.origin.y = CGRectGetMaxY(self.parentViewController.tabBarController.tabBar.frame) - frame.size.height;
      notificationBar.frame = frame;
  
      [self.parentViewController.tabBarController.tabBar.superview insertSubview:notificationBar 
                                                                    belowSubview:self.parentViewController.tabBarController.tabBar];
  
      [UIView animateWithDuration:0.5 animations:^{
          CGRect frame = notificationBar.frame;
          frame.origin.y = CGRectGetMaxY(self.parentViewController.tabBarController.tabBar.frame);
          notificationBar.frame = frame;
      }];
  }
  </code></pre>