0

Sorry I previously posted a question here, but The answers I got didn't work (probably my fault).

Basically, I want to stop a UIPopover from dismissing automatically. I got to this piece of code:

    - (BOOL) popoverControllerShouldDismissPopover:(UIPopoverController *)popoverController
{
    return NO;
}

which I put in, but it doesn't seem to have any effect. Is there anything else I should add? am I putting it in the right place (I was putting it in the vc.m of the view that has the popover within it)?

Thanks Very Much,

Luke

Community
  • 1
  • 1
Luke Baumann
  • 596
  • 12
  • 35

1 Answers1

2

Check to make sure the UIPopover delegate is set. You can do this in code by setting the popover instance variable:

aPopover.delegate = self;

Andriy
  • 2,767
  • 2
  • 21
  • 29
ms83
  • 1,804
  • 16
  • 13