Question

I'm developping an iPad App and need to present a popover from a button located in each footer of a grouped tableview with a variable amount of sections (up to 100). How do I set the anchor for the popover to the pressed button, when in every section the same button property is being loaded?

Any idea much appreciated.

Edit: I'm an idiot for being unspecific. I actually have a toolbar loaded in the footerView of each section and need to identify the right UiBarButtonItem. Any Idea??

Was it helpful?

Solution

We use this message of UIPopoverController object to present a popover

 *YOURPOPOVERCONTROLLER* presentPopoverFromRect:
                                         inView:
                       permittedArrowDirections:
                                       animated:

You can send the frame of the button as argument to presentPopoverFromRect.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top