title: How to display custom view in UIActionSheet?
body: <p>I have a UIView with a date picker that I'd like to display in an action sheet.  I'm using the following code:</p>
  <pre><code>-(IBAction) button_click:(id)sender{
      //UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@&quot;the title&quot; delegate:nil cancelButtonTitle:@&quot;Cancel&quot; destructiveButtonTitle:@&quot;Destructive&quot; otherButtonTitles:@&quot;other&quot;, nil];
  
      UIActionSheet *sheet = [[UIActionSheet alloc] init];
      ActionSheetController *actionSheet = [[ActionSheetController alloc]  initWithNibName:@&quot;ActionSheetView&quot; bundle:nil];    
      [sheet addSubview:actionSheet.view];
  
      [sheet showInView:self.view];
  }
  </code></pre>
  <p>What I get is a little bit of the top part of the new view coming up from the bottom and that's it.  If I comment the two middle lines of code and uncomment the top part to display a regular action sheet, it works fine.  Any ideas what I might be doing wrong?</p>