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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:07:03+00:00 2026-06-08T09:07:03+00:00

I work on a project with ios5, Xcode 4, iPad. I have a popover

  • 0

I work on a project with ios5, Xcode 4, iPad.

I have a popover triggered from a standard button in my main view. I have setup the popover in the storyboard with a segue anchored to a standard button.

The UIPopoverControllerDelegate is my main view controller

 @interface ViewController : UIViewController <UIPopoverControllerDelegate>

When I select a row in the popover I want to

  • dismiss the popover and
  • call the UIPopoverControllerDelegate method popoverControllerDidDismissPopover.

This is the code in the table view delegate of my popover:

 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath      *)indexPath {
     myKey = [myArray objectAtIndex:indexPath.row];
     [popoverController dismissPopoverAnimated:YES];
     // [popoverController.delegate popoverControllerDidDismissPopover];

Without last line, all works OK, row selection and dismission included.

But I am confused with the last line of code

     [popoverController.delegate popoverControllerDidDismissPopover];

If this line is uncommented I get a compiler error: “No known instance method for selector popoverControllerDidDismissPopover”. The popover delegate is set in main view controller with this code:

- (void) prepareForSegue:(UIStoryboardPopoverSegue *) segue sender:(id) sender {
     if ([[segue destinationViewController] isKindOfClass:[RGBViewController class]]) {
        RGBViewController* viewController = (RGBViewController*)[segue destinationViewController];
        UIStoryboardPopoverSegue* popoverSegue  = (UIStoryboardPopoverSegue*)segue;
        [viewController setPopoverController:[popoverSegue popoverController]];
        [[popoverSegue popoverController] setDelegate:self];
     }
 }

Any help?

Thank you.

  • 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-08T09:07:04+00:00Added an answer on June 8, 2026 at 9:07 am

    You are missing the attribute. The line you are looking for is:

    [popoverController.delegate popoverControllerDidDismissPopover:popoverController];
    

    Is there a particular reason you want to call this? I believe this should be called for you when you dismiss the popover.

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

Sidebar

Related Questions

I work with Xcode 4.3 for a iPad iOS 5 project. I am performing
I am working on an iPad (iOS5) project on Xcode 4. I knew I
I created a project in xcode 4.2 using the feature of storyboard. I have
I need some help with a work project I have been assigned. At the
Ok, So I have been stalled in my latest non-work project, trying to use
How can I create a popover in an iPad Storyboard for an iOS 5.0+
I have a fairly large work project that uses pygtk for the GUI and
So I have been playing with a Ruby gem for a work project that
I have been doing some research lately over my work project, i am trying
I'm prepping for a simple work project and am trying to familiarize myself with

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.