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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:02:53+00:00 2026-05-13T06:02:53+00:00

Hey everyone. I am trying to incorporate a simple UINavigationController into my tab bar

  • 0

Hey everyone. I am trying to incorporate a simple UINavigationController into my tab bar application. I have the TabBar set as the root controller and all seems to work fine. This method is called correctly and does not break yet it does not change to my detail view. I am completely lost on this one.

I followed instructions from this video: http://www.youtube.com/watch?v=LBnPfAtswgw&feature=player_embedded#. I changed some things around to make it work with what I am trying to accomplish but the underlying logic I left the same. She is working with SDK 2.* and I am using 3.*. I assume this has something to do with it. Can anyone help me out? This is what my didSelectRowAtIndexPath looks like :

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // Navigation logic may go here. Create and push another view controller.
 NSInteger row = [indexPath row];
 if(self.detailViewController == nil) {
  LogEntryDetailViewController *logEntryDetail = [[LogEntryDetailViewController alloc]
              initWithNibName:@"LogEntryDetailView" bundle:[NSBundle mainBundle]];
  self.detailViewController = logEntryDetail;
  [logEntryDetail release];
 }

 detailViewController.title = [NSString stringWithFormat:@"%@", [logEntriesArray objectAtIndex:row]];

 ProgNameAppDelegate *delegate = (ProgNameAppDelegate *)[[UIApplication sharedApplication] delegate];
 [delegate.logViewNavController pushViewController:self.detailViewController animated:YES];
}

I am going nuts here. If I need to post this somewhere else I will be happy to do so. Thanks in advance!

  • 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-13T06:02:53+00:00Added an answer on May 13, 2026 at 6:02 am

    You should change these lines:

    ProgNameAppDelegate *delegate = (ProgNameAppDelegate *)[[UIApplication sharedApplication] delegate];
    [delegate.logViewNavController pushViewController:self.detailViewController animated:YES];
    

    with this:

    [self.navigationController pushViewController:detailViewController animated:YES];
    

    If you have a tab bar controller as you say, then pushing your detailViewController on delegate.logViewNavController is probably the wrong thing to do (depending on what delegate.logViewNavController is…, but since this is not working for you, my bet is that’s where your confusion is).

    In general, you don’t need to complicate your code with accessing the application delegate to fetch a controller like that. All you need to do is push your new controller on self.navigationController in most practical cases.

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

Sidebar

Related Questions

Hey everyone, running into a bit of an issue, I have created all my
Hey everyone. I am trying to create a black bar, the size of the
Hey everyone I am trying to get back into Spring programming on tomcat6. Can
Hey everyone I'm trying to get a clearer understanding of LINQ. I have a
Hey everyone! I'm trying to develop a simple app with spring + gwt +
Hey everyone, a new guy here in C#.Net. I'm trying to make an application
Hey everyone. While I'm trying to learn some PHP and mySQL, I ran into
Hey everyone, I am trying to run the following program, but am getting a
Hey everyone. I'm trying to make a swing GUI with a button and a
Hey everyone, my first time trying to draw a multi-color gradient in actionscript 3.

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.