title: How To Present Half Screen Modal View?
body: <p>I have a UIViewController and when a button is pressed, I want a half screen view to slide up with a UIPicker in it.</p>
  
  <p>I made a UIView in IB with the UIPicker along with a UIToolBar with Done/Cancel buttons.</p>
  
  <p>How can I make it so that just this half view slides up and the background view is still showing but dimmed or cant be played with.</p>
  
  <p>I'm using this code so far:</p>
  
  <pre><code>- (void)showModalView
  {
      [self.popupView setFrame:CGRectMake(0, self.view.frame.size.height, self.view.frame.size.width, self.view.frame.size.height)];
      [self.view addSubview:self.popupView];
  
      [UIView animateWithDuration:.2 animations:^{
          [self.popupView setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
      }];
  }
  </code></pre>
  
  <p>Here is a pic: <a href="http://www.box.net/shared/static/08ji4s0f6i1b8qubrtz6.png" rel="noreferrer">http://www.box.net/shared/static/08ji4s0f6i1b8qubrtz6.png</a></p>