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

  • SEARCH
  • Home
  • 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 8069621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:06:39+00:00 2026-06-05T13:06:39+00:00

I have a second view controller set to display in a UIPopoverController. I set

  • 0

I have a second view controller set to display in a UIPopoverController. I set up a delegate in the second view controller so when the user taps the button “Done”, it passes the data back to the first view controller. The data is a list of selections the user makes, its not a single selection.

i’m having trouble figuring out a way to pass that data back to the first view controller if the user tap’s outside of the pop over and is dismissed. right now, if the user taps out side of the pop over and it gets dismissed, i lose the data.

i suppose i could restrict them from dismissing the pop over by tapping outside of it, but i’d rather not.

any ideas?

  • 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-06-05T13:06:41+00:00Added an answer on June 5, 2026 at 1:06 pm

    When you present the UIPopoverController, set its delegate to be self

    And then add to the class this function

    - (void)popoverControllerDidDismissPopover:(UIPopoverController *)popoverController
    {
        YourViewController *controller =  popoverController.contentViewController;
        MyData *data = controller.yourData;
        //Do something with data
    }
    

    This function will be called when the popover is dismissed

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

Sidebar

Related Questions

I have a UIViewController and I'm navigating from my first view controller to second
I have this code: tableList = [[NSMutableArray alloc] initWithObjects:@First View,@Second View,nil]; I have synthesized
I have two views, one view takes the whole screen, the second view covers
I have a uinavigationcontroller with 2 views. In the second view I have some
I have a view controller that i'm trying to push onto the navigation stack.
I have a UINavigationController , and push from the root view controller to the
I have two views with navigation controller: first view, there are empty text fields
I have a rails route set up like: match ':controller/:id/:action' # match 'teams/:id' =>
I have a problem with returning data to view. I want to create a
I have core data entity: mole, which I display in a TableView. When I

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.