Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3323510
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:18:41+00:00 2026-05-17T23:18:41+00:00

I have a pop over view. When this popover gets dismissed, I want to

  • 0

I have a pop over view. When this popover gets dismissed, I want to get notified.

Is there any way to do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:18:41+00:00Added an answer on May 17, 2026 at 11:18 pm

    The answer is incredibly simple!

    The delegate routine popoverControllerDidDismissPopover is called for you whenever the popover is dismissed.

    So just add this code to your code…

    -(void)popoverControllerDidDismissPopover:
            (UIPopoverController *)popoverController
        {
        NSLog(@"a popover was dismissed! thank you stackoverflow!");
        }
    

    OK? You can also use popoverControllerShouldDismissPopover if you actually want to prevent it from being dismissed.

    (Note – in the unusual case you are working with more than one popover, just check inside that routine which one it is that is being dismissed. So something like popoverController == myPostcodePopover or whatever.)

    If you don’t know how to do something, the solution is almost always in the delegates available with the class you are working with.

    ———– don’t forget to do this!

    Whenever you use any delegate, of course you have to set the delegate to be “you”,

    zipcodeEntryPopover.delegate = self;
    

    ———– don’t forget to do this!

    If you’re going to use a delegate like that, you just need to add it to your delegate declarations where you declare the class in your .h file.

    So, in your .h file you will have something like this,

    @interface yourHappyThing : UIViewController <ASIHTTPRequestDelegate,
                        UIAccelerometerDelegate,
                        thisDelegate,
                        thatDelegate>
    

    (Often you have a large number of them in there, both system delegates and your own which you have created.) So, you just need to add the one for the popover delegate, thus …

    @interface yourHappyThing : UIViewController <ASIHTTPRequestDelegate,
                        UIAccelerometerDelegate,
                        thisDelegate,
                        thatDelegate,
                        UIPopoverControllerDelegate>
    

    That should do it!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have pop-up with h:selectOneMenu . This pop-up will be displayed on a4j:commandLink click.
i have implemented the popover view to the BarButtonItem, it works and shows the
I have a popover that contains a UITableView. This UITableView has a cell with
Is there a shorter way to present a view controller, when wanting to support
I have a popover view which is called with: Info *infoview = [[Info alloc]init];
In my main view controller, I have a button that calls a popover. Since
I have a popover that gets loaded with a navigation controller, which displays the
I'm using Xcode 4.3.3 and Storyboards for this project. I have a master view
I have nice helper functions that allow me to show/hide the master popover view
I have opened a pop up window on button click. I want to set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.