title: Using UIActionSheet on iPad
body: <p>Apple's documentation for the UIActionSheet is causing me confusion. First off, in the iPad Human Interface Guidelines, it says :</p>
  
  <blockquote>
    <p>To learn more about using an action sheet in your code, see “Using Popovers to Display Content” in iPad Programming Guide.</p>
  </blockquote>
  
  <p>But then in the "Using Popovers to Display Content" section, it doesn't mention Action Sheets at all! Am I missing something here?</p>
  
  <p><a href="http://developer.apple.com/library/ios/#documentation/General/Conceptual/iPadHIG/UIElements/UIElements.html#//apple_ref/doc/uid/TP40009446-CH6-SW9">http://developer.apple.com/library/ios/#documentation/General/Conceptual/iPadHIG/UIElements/UIElements.html#//apple_ref/doc/uid/TP40009446-CH6-SW9</a></p>
  
  <p>My main question is this: on the iPad, what is the difference between a UIPopoverController and a UIActionSheet? If a UIActionSheet automatically presents itself inside a UIPopoverController, is there any reason to use UIActionSheet at all? I see how its delegate and automatic creation of buttons makes for fewer lines of code, but from a usability POV, is there a difference?</p>
  
  <p>Also, displaying my actionSheet with animation is not working at all. It looks and acts exactly like an actionSheet presented without animation (which is exactly the same as if I were just using a UIPopoverController and no actionSheet at all). Here's my code:</p>
  
  <pre><code>UIActionSheet *action = [[UIActionSheet alloc] initWithTitle:@"An unsaved property already exists. You must assign a name to this property before creating a new property. Would you like to:"
      delegate:self
      cancelButtonTitle:nil
      destructiveButtonTitle:@"Overwrite"
      otherButtonTitles:@"Open unsaved property", nil];
  
  [action showFromRect:CGRectMake(0, 0, 200, 200) inView:self.mainSplitViewController.view animated:NO];
  </code></pre>
  
  <p>How would I get an actionSheet that looks like the sample animated actionSheet in Apple's documentation (from the maps application, where you add a location to a contact)?</p>
  
  <p>I may just end up using an alert for this rather than a popover or an actionSheet, but it would still be useful to understand this.</p>
  
  <p>Thanks!</p>