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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:52:05+00:00 2026-05-24T21:52:05+00:00

When selecting a row from the master view of UISPlitViewControler when its in popover

  • 0

When selecting a row from the master view of UISPlitViewControler when its in popover mode. Isn’t it supposed to dismiss automatically? How can I fix it there?

Usually I would do [self.popoverController dismissPopoverAnimated:YES]; but popoverController isn’t recognized in this case.

I thought that UISplitViewController is supposed to do this automatically?

Here is my UISplitViewDelegate code that is in my detailViewCOntroller:

- (void)splitViewController:(UISplitViewController *)svc willHideViewController:(UIViewController *)aViewController withBarButtonItem:(UIBarButtonItem *)barButtonItem forPopoverController: (UIPopoverController *)pc
{
    barButtonItem.title = @"Medical Codes";
    NSMutableArray *items = [[self.toolbar items] mutableCopy];
    [items insertObject:barButtonItem atIndex:0];
    [self.toolbar setItems:items animated:YES];
    [items release];
}

// Called when the view is shown again in the split view, invalidating the button and popover controller.
- (void)splitViewController:(UISplitViewController *)svc willShowViewController:(UIViewController *)aViewController invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem
{
    NSMutableArray *items = [[self.toolbar items] mutableCopy];
    [items removeObjectAtIndex:0];
    [self.toolbar setItems:items animated:YES];
    [items release];
}

In my app delegate I have:

@property (nonatomic, retain) IBOutlet UISplitViewController *splitViewController;
@property (nonatomic, retain) IBOutlet DetailViewControlleriPad *rightViewController;
@property (nonatomic, retain) IBOutlet RootViewController * leftViewController;

And these properties are hooked up in IB. RootViewController pushes to other tableviews, which need to be dismissed when they are selected while in popover mode.

edit

- (void)setDetailItem:(id)newDetailItem
{
    if (detailItem != newDetailItem)
    {
        [detailItem release];
        detailItem = [newDetailItem retain];
        [self.myTableView reloadData];
    }
}
  • 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-24T21:52:06+00:00Added an answer on May 24, 2026 at 9:52 pm

    I’ve always had to explicitly dismiss the popover manually. To do this, grab a reference to the popover view controller when it is passed to my UISplitViewControllerDelegate:

    - (void)splitViewController:(UISplitViewController*)svc 
         willHideViewController:(UIViewController *)aViewController 
              withBarButtonItem:(UIBarButtonItem*)barButtonItem 
           forPopoverController:(UIPopoverController*)pc
    {
        splitViewPopover = [pc retain];
        // Other stuff
    }
    

    Because I do this I also have to release the reference when it is no longer valid:

    - (void)splitViewController:(UISplitViewController*)svc 
         willShowViewController:(UIViewController *)aViewController 
      invalidatingBarButtonItem:(UIBarButtonItem *)button 
    {    
        [splitViewPopover release];
        splitViewPopover = nil;
        // Other stuff
    }
    

    Then, when an item has been selected in my master view controller, I update my detail controller and dismiss the popover:

    [splitViewPopover dismissPopoverAnimated:NO];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My business partner and I are having issues selecting from a MySQL view that
If I am selecting a whole row from the Results pane of the SQL
I found this solution for selecting a random row from a table in Oracle.
I have mutliple workers SELECTing and UPDATing row. id status 10 new 11 new
What's the best way for selecting a table row by index using jQuery? Thanks
So basically I use jQuery for alternating row colours by selecting all the tr
say I have a UITableView and upon selecting a new table row (thus firing
when selecting a column that can contains a NULL value I get an exception
I'm writing an iPhone app. Starting from a view controller in a navigation stack
I originally started by selecting customers from a group of customers and then for

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.