title: Unable to animate just a frame to slide up on click of a button.
body: <p>I am try to create an animation in my app which would slide up a frame to my desired position. The frame would be having other buttons and text on it as well. </p>
  
  <p>I was unable to use actionsheet for this, as it starts from the bottom most part of the window. What i want to create is shown in the picture below. </p>
  
  <p><img src="https://i.stack.imgur.com/bYFEc.png" alt="enter image description here"></p>
  
  <p>the frame I want to animate is the one with Capture mode: text. </p>
  
  <p>Click on the button on the tabView I want this frame to slide up, starting from the top of the tabview. and again clicking the button should make the frame disappear. </p>
  
  <p>So far my code looks like </p>
  
  <pre><code>-(IBAction)setting
  
  
  {
  
      NSLog(@"finalShare Button");
  
      UIView *tempView;
  
      CGRect tmpFrame;
  
      tempView = [[[UIView alloc] initWithFrame:CGRectMake(0, 490, 320, 90)] 
  
                  autorelease];
  
      [tempView setBackgroundColor:[UIColor clearColor]];
  
      [tempView setAlpha:.87];
  
      tempView.hidden = YES;
  
      [self.view addSubview:tempView];
  
  
  
      tmpFrame = tempView.frame;
  
      [UIView beginAnimations:nil context:NULL];
  
      [UIView setAnimationDuration:.75];
  
      tmpFrame.origin.y=390;
  
      self.view.frame=tmpFrame;
  
      [UIView commitAnimations];
  
  
  }
  </code></pre>
  
  <p>The problem I am facing here is that when I animate my frame to move, the main view moves along with it. Which is something I don't want it to do. </p>
  
  <p>I am new to iPhone programming, please guide how can I fix this. 
  Or what would be a better way to do it. </p>
  
  <p>Thanks </p>