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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:46:58+00:00 2026-05-23T15:46:58+00:00

I have a TTSplitViewController in which I am trying to show a UITabBarController at

  • 0

I have a TTSplitViewController in which I am trying to show a UITabBarController at the left pane, via the code:

@implementation SplitAppController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]))  {
        [self setupURLRouting];
    }

    return self;
}

- (void)setupURLRouting {
    [self routePrimaryNavigator];
    [self routeDetailsNavigator];
}

- (void)routePrimaryNavigator {

    TTURLMap* map = self.primaryNavigator.URLMap;

    // Forward all unhandled URL actions to the right navigator.
    [map from: @"*" toObject: self selector: @selector(willOpenUrlPath:)];
    [map from:@"tt://primary" toViewController:[RootViewController class]];
}

RootViewController here is a UITabBarController. However, I am getting the following error:

2011-07-08 08:04:23.739 app[3241:207] -[RootViewController topViewController]: unrecognized selector sent to instance 0x520c060
2011-07-08 08:04:23.755 app[3241:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RootViewController topViewController]: unrecognized selector sent to instance 0x520c060'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x017d95a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x0192d313 objc_exception_throw + 44
    2   CoreFoundation                      0x017db0bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x0174a966 ___forwarding___ + 966
    4   CoreFoundation                      0x0174a522 _CF_forwarding_prep_0 + 50
    5   app                               0x000f73ff -[TTSplitViewController updateSplitViewButton] + 176
    6   app                               0x000f75d9 -[TTSplitViewController viewDidAppear:] + 90
    7   UIKit                               0x00ae1fab -[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:] + 694
    8   UIKit                               0x00a64e4b -[UIView(Internal) _didMoveFromWindow:toWindow:] + 918
    9   UIKit                               0x00a63a60 -[UIView(Hierarchy) _postMovedFromSuperview:] + 166
    10  UIKit                               0x00a5c750 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1080
    11  UIKit                               0x00a5aaa3 -[UIView(Hierarchy) addSubview:] + 57
    12  app                               0x00083d01 -[TTBaseNavigator setRootViewController:] + 306
    13  app                               0x000841f9 -[TTBaseNavigator presentController:parentController:mode:action:] + 70
    14  app                               0x00084437 -[TTBaseNavigator presentController:parentURLPath:withPattern:action:] + 359
    15  app                               0x00084975 -[TTBaseNavigator openURLAction:] + 1320
    16  app                               0x0000c440 -[appAppDelegate application:didFinishLaunchingWithOptions:] + 848
    17  UIKit                               0x00a2bc89 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1163
    18  UIKit                               0x00a2dd88 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 439
    19  UIKit                               0x00a38617 -[UIApplication handleEvent:withNewEvent:] + 1533
    20  UIKit                               0x00a30abf -[UIApplication sendEvent:] + 71
    21  UIKit                               0x00a35f2e _UIApplicationHandleEvent + 7576
    22  GraphicsServices                    0x01fee992 PurpleEventCallback + 1550
    23  CoreFoundation                      0x017ba944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
    24  CoreFoundation                      0x0171acf7 __CFRunLoopDoSource1 + 215
    25  CoreFoundation                      0x01717f83 __CFRunLoopRun + 979
    26  CoreFoundation                      0x01717840 CFRunLoopRunSpecific + 208
    27  CoreFoundation                      0x01717761 CFRunLoopRunInMode + 97
    28  UIKit                               0x00a2d7d2 -[UIApplication _run] + 623
    29  UIKit                               0x00a39c93 UIApplicationMain + 1160
    30  app                               0x00031342 main + 130
    31  app                               0x00002a75 start + 53
)
terminate called after throwing an instance of 'NSException'

How do I fix this?

  • 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-23T15:46:58+00:00Added an answer on May 23, 2026 at 3:46 pm

    Seems like your code is expecting RootViewController to be a subclass of UINavigationController.

    If you didn’t write that code, you can make a UINavigationController subclass, and initialize it with your tab bar controller as a root view controller, and hide the navigation bar, I think this would give the results you are looking for.

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

Sidebar

Related Questions

Have you guys had any experiences (positive or negative) by placing your source code/solution
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have following listener for keyboard ArrowDown event(it's key code is 40 ): window.onload =
Have added the following code to my SQL query: (Note cut down version) DECLARE
have been trying couple of hours now to make my iphone app universal. The
Have some code: using (var ctx = new testDataContext()) { var options = new
Have a look at the following code to find X^y. /* Find exponent in
Have anyone used Redmine Documentor which lets you convert PHP to HTML to Redmine
Have the following scenario. I have a few form, which essentially have a few
Have the following code. The height is variable so the height of the floating

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.