title: How Can I set UIBarButtonItem as anchor of a popover in IOS?
body: <p>I show a popover controller in my IPad app:</p>
  
  <pre><code>[self.programMapPopOver presentPopoverFromRect:anchor.frame
                          inView:anchor.superview
                          permittedArrowDirections:UIPopoverArrowDirectionAny 
                          animated:YES];
  </code></pre>
  
  <p>My problem is with anchor: I'd like to set an UIBarButtonItem* as its anchor, but it is not an UIView*, but inView is a view* parameter.</p>
  
  <p>How can I solve this?</p>
  
  <p>Thanks to all! </p>