title: UIPopover How do I make a popover with buttons like this?
body: <p><img src="https://i.stack.imgur.com/chOKZ.jpg" alt="enter image description here"></p>
  
  <p>I'm wondering how I can create a popover with buttons like this.</p>
  
  <p>ANSWER:</p>
  
  <pre><code>UIActionSheet * actionSheet = [[UIActionSheet alloc] initWithTitle: nil 
                                                            delegate: self
                                                   cancelButtonTitle: nil 
                                              destructiveButtonTitle: nil 
                                                   otherButtonTitles: @"Take Photo",
                                                                      @"Choose Existing Photo", nil];
  
  [actionSheet showFromRect: button.frame inView: button.superview animated: YES];
  </code></pre>
  
  <p>Somewhere else in your delegated object class...</p>
  
  <pre><code>-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
      if (buttonIndex == 0) {
           // take photo...
      } 
      else if (buttonIndex == 1) {
           // choose existing photo...
      }
  }
  </code></pre>