Dismissing UIPopoverController when a cell is selected
===

Xcode 4, iOs 5, iPad.

I have a (main) ViewController and a UIPopoverController (TableView) with the main as delegate. When I tap outside the popover, the popover dismiss, but I want to dismiss when I tap inside the popover also (i.e. when I select a cell).

I know that it is the main ViewController that can dismiss the popover, and that the call is 

    [myPopoverController dismissPopoverAnimated:YES];

but I am confused about the code. Where to put this message?

Any help?

Thank you.
