문제

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??

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top