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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T17:58:28+00:00 2026-06-04T17:58:28+00:00

I have a tabbed application that contains five splitviewcontrollers. In portrait mode, the ‘master’

  • 0

I have a tabbed application that contains five splitviewcontrollers.

In portrait mode, the ‘master’ button appears as expected, and on the first two controllers that button behaves as expected. On the last three tabs however, the button causes a crash with the following message:

Assertion failure in -[_UISlidingPopoverLayoutInfo _popoverViewSizeForContentSize:arrowDirection:], /SourceCache/UIKit_Sim/UIKit-1914.84/_UIPopoverLayoutInfo.m:160
2012-04-24 19:15:38.674 SMToolkit[12420:11303] * Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Unknown direction passed to _popoverViewSizeForContentSize:arrowDirection:’

Thing is, the five views are cut-n-pasted from the same source, pretty much Apple’s boilerplate. I’m not actually storyboarding the popovers, nor do I have them in a prepareforsegue method, since the spliltviewcontroller theoretically gives them to me ‘for free’

All five splitviewcontrollers conform to UISplitViewControllerDelegate

The appdelgate is like so:

    UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController;
   //Person
    UISplitViewController *personSplitViewController = [tabBarController.viewControllers objectAtIndex:1];
    UINavigationController *personNavigationController = [personSplitViewController.viewControllers lastObject];
    personSplitViewController.delegate = (id)personNavigationController.topViewController;
    UINavigationController *personMasterNavigationController = [personSplitViewController.viewControllers objectAtIndex:0];
    PersonMasterViewController *personController = (PersonMasterViewController *)personMasterNavigationController.topViewController;
    personController.managedObjectContext = self.managedObjectContext;
    //Scene
    UISplitViewController *sceneSplitViewController = [tabBarController.viewControllers objectAtIndex:2];
    UINavigationController *sceneNavigationController = [sceneSplitViewController.viewControllers lastObject];
    sceneSplitViewController.delegate = (id)sceneNavigationController.topViewController;
    UINavigationController *sceneMasterNavigationController = [sceneSplitViewController.viewControllers objectAtIndex:0];
    SceneMasterViewController *sceneController = (SceneMasterViewController *)sceneMasterNavigationController.topViewController;
    sceneController.managedObjectContext = self.managedObjectContext;

And so on, substituting the correct index in the tabBarController

Then in the detail view controllers, each has the following (identical, I checked):

- (void)splitViewController:(UISplitViewController *)splitController willHideViewController:(UIViewController *)viewController withBarButtonItem:(UIBarButtonItem *)barButtonItem forPopoverController:(UIPopoverController *)popoverController
{
barButtonItem.title = NSLocalizedString(@"Master", @"Master");
[self.navigationItem setLeftBarButtonItem:barButtonItem animated:YES];
self.masterPopoverController = popoverController;
}


- (void)splitViewController:(UISplitViewController *)splitController willShowViewController:(UIViewController *)viewController invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem
{
// Called when the view is shown again in the split view, invalidating the button and popover controller.
[self.navigationItem setLeftBarButtonItem:nil animated:YES];
self.masterPopoverController = nil;
}

In the above, ‘person’ behaves as expected, but ‘scene’ causes the crash.

I don’t see anywhere in any of the views anything that talks about what happens when that barbuttonitem is clicked, and it doesn’t appear in the storyboard.

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-04T17:58:30+00:00Added an answer on June 4, 2026 at 5:58 pm

    Unfortunately, in my case at least, the answer was that there was a pretty stupid bug in our code.

    What was happening was that in viewWillAppear for the master view we were setting some stuff on the detailview which was in turn trying to get the master view to appear. Taking that out and making each view control only itself solved the problem.

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

Sidebar

Related Questions

Alright, so I have an application that has a tabbed interface. What I would
I have this code that i did on Xcode 4.2 in a tabbed application
I have a C#/WPF application with a tabbed interface that has been behaving strangely.
I have made a MDI (tabbed) application that uses PictureBoxes inside TabPages. The picturebox
I have web application in that i am using tabbed interface control in this
Background : I have a C# Windows Forms application that contains a Windows service
Is there a way that I can have a tabbed application, where if i
I have a web application that performs certain task, and have created a tabbed
I have the following problem. I have a tabbed application implemented using a ViewPager.
I have an iOS 5 Tabbed Application, using Storyboards. My Tabbar Controller points to

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.