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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:21:45+00:00 2026-05-27T11:21:45+00:00

my app is built with a UITabController and works as imagined. However, for one

  • 0

my app is built with a UITabController and works as imagined. However, for one of the views within my UITabBar, I would like to add a table that when something is pressed will take me somewhere. And I would like to do this just within this one view.

I know how to build a table and populate and get it to go somewhere but my issue is I can’t seem to get my app to run with the table. I feel like my connections are off and specifically with appDelegates. I already had two appDelegate files (.h & .m) before adding the UINavigationController so from here I really don’t know what to do. I took apple’s simpleTableView tutorial files and copied them over to mine. It still crashes. I even copied there appDelegate files (so now I have 4) but the same deal. This is the error I am getting but in general I just feel lost with the delegates and connections.

2011-12-12 12:08:50.302 TabbedCalculation[68713:207] * Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: ‘[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key delegate.’
*
Call stack at first throw:

If anyone can offer any help, it would be much appreciated.

Thanks!

P.S. I have changed within the mainWindow.xib of the UITabController to point one of the tabs to the appropriate class and xib file so that is not the issue but I have noticed that many tutorials want within the app delegate this line to the navController:
[window addSubview:[navigationController view]];

but I have already set it to the tabBarController.

  • 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-27T11:21:45+00:00Added an answer on May 27, 2026 at 11:21 am

    Your app can only use one set of app delegate files. So copying over a the example’s app delegate files does not mean they are being utilized. You need a navigation controller inside the specific tab you want to contain the tableview. Here is an example of a navigation controller inside a tab bar controller, by modifying didFinishLaunchingWithOptions in the app delegate:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
        // Override point for customization after application launch.
    
        AllTaskViewController *view1 = [[AllTaskViewController alloc] initWithNibName:@"AllTaskView" bundle:nil];
        view1.title = @"All Tasks";
    
        TodayTaskViewController *view2 = [[TodayTaskViewController alloc] initWithNibName:@"TodayTaskView" bundle:nil];
        view2.title = @"Today's Tasks";
    
        HistoryViewController *view3 = [[HistoryViewController alloc] initWithNibName:@"HistoryView" bundle:nil];
        view3.title = @"History";
    
        SettingsTableViewController *view4 = [[SettingsTableViewController alloc] initWithNibName:@"SettingsTableView" bundle:nil];
        view4.title = @"Settings";
    
        UINavigationController *nav1 = [[UINavigationController alloc] initWithRootViewController:view1];
        UINavigationController *nav2 = [[UINavigationController alloc] initWithRootViewController:view2];
        UINavigationController *nav3 = [[UINavigationController alloc] initWithRootViewController:view3];
        UINavigationController *nav4 = [[UINavigationController alloc] initWithRootViewController:view4];
    
        [view1 release];
        [view2 release];
        [view3 release];
        [view4 release];
    
        self.tabBarController = [[[UITabBarController alloc] init] autorelease];
        self.tabBarController.viewControllers = [NSArray arrayWithObjects:nav1, nav2, nav3, nav4, nil];
    
        [nav1 release];
        [nav2 release];
        [nav3 release];
        [nav4 release];
    
        self.window.rootViewController = self.tabBarController;
        [self.window makeKeyAndVisible];    
    
        return YES;
    }
    

    Note: All 4 view controllers have an individual navigation controller, and each one is a custom view controller. I used nibs here, but you don’t necessarily have to. And the app itself has no main window, you would need to modify this slightly if you are using a main window for the app.

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

Sidebar

Related Questions

I have an app built in CI and I would like that sessions don't
I have a universal app built that runs and works perfectly on an iPad,
I have a console app built on .NET 4 that uses the HttpClient library
I have a web app built with html5 boilerplate that has multiple skins available.
I have a web app built in coldfusion that receives medical referral letters from
I'm maintaining a Windows CE app built with the .NET Framework that has about
I have my app built on Rails 3.0.9 and Ruby 1.8.7. My app works
I have a fairly simple app built with pyqt4. I wanted to debug one
I have a nice iPhone app built that uses a UINavigationController to navigate through
I have an app built on Sinatra. It's supported by several rake tasks that

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.