Popover not displaying properly over buttonbar

You must Login before you can answer or comment on any questions.

I've got an iPad app with a buttonbar set as the rightNavButton. The buttonbar has 3 labels/buttons. Two of these three buttons trigger a popover to appear. The arrow at the top of the popover always points at the center button, regardless of which button in the buttonbar triggered the popover. Is there a way to fix this?

— asked 10 months ago by Shawn Berg
1 Comment
  • You may have to post some code. Can you show the declaration of the popover and the line that you are using to display it

    — commented 10 months ago by Arian Caraballo

1 Answer

Hi Shawn

The reason it always points to the centre button is that is what you told it to do.

As the buttonbar is a segment control made up of labels and not separate objects, you are specifying the buttonbar as the view the popover points to - so it is using that control to centre to.

You would have to provide different objects in the rightNavButton position and specify each individually.

Your Answer

Think you can help? Login to answer this question!