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 7049669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:02:59+00:00 2026-05-28T03:02:59+00:00

Hi there, Now I’m trying to create a Pop-OverView using an Xcode storyboard. Firstly,

  • 0

Hi there, Now I’m trying to create a Pop-OverView using an Xcode
storyboard. Firstly, I have

rootViewController, UIViewController, and UITableViewController

I want the UIView to act as a page flip and the UITableView will show popOver under the navigationBar item controller.

For the UITableView, I want to make a Pop-Over under NavigationBar controller. The problem is, when I touch the Navigation item to show the UITableViewController, it shows correctly, but when I try to close the Pop-Over View, it won’t close. And then, the navigation item doesn’t work well. It shows multiple instances of popOverView when I touch it multiple times.

This doesn’t seem to make sense to me. Can anyone help me out or tell me where to find documentation / tutorials on this?

UPDATE:

For the UIPopOverController, it seems to work well now, but it is still bugging me when I touch a Navigation Item multiple times. It will show multiple instances of PopOver. How can I handle it, so it will show only one instance?

  • 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-28T03:03:00+00:00Added an answer on May 28, 2026 at 3:03 am

    I had the same problem and mostly found the solution here. Basically you change the action of the button each time it’s pressed to either display or dismiss the popover. Here’s the code I ended up with:

    @interface FilterTableViewController : UITableViewController {
        UIPopoverController *editPopover;
        id saveEditSender;
        id saveEditTarget;
        SEL saveEditAction;
    }
    
    -(void)prepareForSegue:(UIStoryboardPopoverSegue *)segue sender:(id)sender{
        if([[segue identifier] isEqualToString:@"EditFilterSegue"]){
            // Save the edit button's info so we can restore it
            saveEditAction = [sender action];
            saveEditTarget = [sender target];
            saveEditSender = sender;
    
            // Change the edit button's target to us, and its action to dismiss the popover
            [sender setAction:@selector(dismissPopover:)];
            [sender setTarget:self];
    
            // Save the popover controller and set ourselves as the its delegate so we can
            // restore the button action when this popover is dismissed (this happens when the popover
            // is dismissed by tapping outside the view, not by tapping the edit button again)
            editPopover = [(UIStoryboardPopoverSegue *)segue popoverController];
            editPopover.delegate = (id <UIPopoverControllerDelegate>)self;
        }
    }
    
    -(void)dismissPopover:(id)sender
    {
        // Restore the buttons actions before we dismiss the popover
        [saveEditSender setAction:saveEditAction];
        [saveEditSender setTarget:saveEditTarget];
        [editPopover dismissPopoverAnimated:YES];
    }
    
    -(BOOL)popoverControllerShouldDismissPopover:(UIPopoverController *)popoverController
    {
        // A tap occurred outside of the popover.
        // Restore the button actions before its dismissed.
        [saveEditSender setAction:saveEditAction];
        [saveEditSender setTarget:saveEditTarget];
    
        return YES;
    }
    
    - (void)viewWillDisappear:(BOOL)animated
    {
        [super viewWillDisappear:animated];
    
        // Before we navigate away from this view (the back button was pressed)
        // remove the edit popover (if it exists).
        [self dismissPopover:saveEditSender];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From the .net 4.0 previews I have read until now there has been lots
I have data like below AAAAAA BBBBBB CCCCCC DDDDDD EEEEEE Now there is a
We have got a custom MembershipProvider in ASP.NET . Now there are 2 possible
I now there is a way to create scrolling text into a html page(Like
I have a zen cart shop with a costumized template and for now there
What I'm trying to achieve is simple. Now there's an extension already made called
In my database I have a field wich contains a html document. Now there
I have KOHANA_ENV environment var set to DEVELOPMENT for example. Now there is a
I've noticed that there now are the GL_DRAW/READ_FRAMEBUFFER extensions. Currently I am simply using
There are now Custom Actions in Facebook iFrame/Canvas. So one can create a basic

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.