title: Implementing SlideView Animation SlideFromTop and SlideFromBottom
body: <p>I am implementing SlideView animation which will slide from top or bottom depending on the configuration. </p>
  
  <p>For the slideFromTop it works perfectly fine. For slideFromBottom it only shows half of the slide view. Here is my SlideViewController. </p>
  
  <pre><code>const int VIEW_HEIGHT = 44; 
  
  -(void) slideInFromBottom 
  {
      CGRect screenSize = [[UIScreen mainScreen] bounds];
  
      self.view.frame = CGRectMake(0,screenSize.size.height, self.view.frame.size.width, VIEW_HEIGHT);
  
      [UIView animateWithDuration:2.0 animations:^{
  
          self.view.frame = CGRectMake(0, screenSize.size.height - VIEW_HEIGHT, self.view.frame.size.width,VIEW_HEIGHT);
  
      } completion:^(BOOL finished) {
  
          [UIView animateWithDuration:2.0 delay:2.0 options:UIViewAnimationOptionAllowAnimatedContent animations:^{
  
              self.view.frame = CGRectMake(0, screenSize.size.height, self.view.frame.size.width, VIEW_HEIGHT); 
  
          } completion:^(BOOL finished) {
  
          }];
  
  
      }];
  
  }
  
  -(void) slideInFromTop
  {
      self.view.frame = CGRectMake(0, (-1) * VIEW_HEIGHT, self.view.frame.size.width, VIEW_HEIGHT);
  
      CGRect temp = self.view.frame;
  
      [UIView animateWithDuration:2.0 animations:^{
  
          self.view.frame = CGRectMake(0, 0, self.view.frame.size.width,VIEW_HEIGHT);
  
      } completion:^(BOOL finished) {
  
          [UIView animateWithDuration:2.0 delay:2.0 options:UIViewAnimationOptionAllowAnimatedContent animations:^{
  
              self.view.frame = temp;
  
          } completion:^(BOOL finished) {
  
          }];
  
  
      }];
  
  }
  </code></pre>
  
  <p>The user calls the SlideViewController using the following code: </p>
  
  <pre><code>-(IBAction) save:(id) sender 
  {
      SlideViewController *slideViewController = [[SlideViewController alloc] initWithTitle:@"Customer has been saved!" animationType:SlideInFromTop];
      [self.view addSubview:slideViewController.view];
  } 
  </code></pre>
  
  <p>UPDATE 2: </p>
  
  <pre><code> self.view.frame = CGRectMake(0, screenSize.size.height - (1.3 * VIEW_HEIGHT), self.view.frame.size.width,VIEW_HEIGHT);
  </code></pre>