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

  • Home
  • SEARCH
  • 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 3500634
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:45:30+00:00 2026-05-18T12:45:30+00:00

I have this code in my table view controller (and delegate): – (void)tableView:(UITableView *)tableView

  • 0

I have this code in my table view controller (and delegate):

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    DetailStatus *detailViewController = [[DetailStatus alloc] initWithNibName:@"DetailStatus" bundle:nil status:[mStatuses objectAtIndex:indexPath.row]];
    [[self navigationController] pushViewController:detailViewController animated:YES];
    [detailViewController release];     
    [self.tableView deselectRowAtIndexPath:indexPath animated:NO];
    NSLog(@"exiting didselectrow");

}

And in my DetailStatus class:

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil status:(NSDictionary *)pStatus {
    NSLog(@"I am being called %d", [pStatus objectForKey:@"id"]);
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];

    if (self) {
        // some stuff
    }
    return self;
}

The funny thing is, my DetailStatus is actually being initialised, in the console window, it even outputs "I am being called 000001" but strangely the view is not being pushed to the table view…

I’ve checked the nib name, and it’s ok. I checked the DetailStatus heading file, it looks ok (like this):

@interface DetailStatus : UIViewController {

So does anyone know why the view is not being pushed to the window even if I’ve initialised it and pushed it?

UPDATE: I tried logging some debugging messages to viewDidLoad in DetailStatus, and it seems like the view is not loaded even though the class was instantiated… I wonder why.

UPDATE2: I have a feeling that this might be my navigation controller organisation that’s wrong.. I have this following:

Login page -> customtabbar -> First table view -> DetailStatus
                           -> Second table view -> DetailStatus

I think I’m only maintaining one navigation controller in that hierarchy. I’ve never created other navigation controllers. I only push view after another.

Thank you everyone for the answers! I will give out the bounty soon, I’ll let other people vote first before the bounty expires.

  • 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-18T12:45:30+00:00Added an answer on May 18, 2026 at 12:45 pm

    After looking at it,the scenario seems to be same like me.What I faced for the first time when doing Tab+Navigation.

    I am sure that there is some problem with your Tab+Navigation based application.
    Although it shows the Tab as well as navigation are not able to navigate the basic flow.And it is very difficult to solve your problem with such less code.

    Instead of this, I had an alternate solution for the same:

    Once you have a tab bar in a XIB, the easiest way to approach this is to drag a UINavigationController object over from the Library window (looks like a left nav bar button on a gold background) into the Tree View for your tab bar (the text only view, not the GUI). Place it under the tab bar, then drag your existing view controller under the tab bar controller instead of under the tab bar.

    When you go to view that tab you should then see a navigation bar on the top of it… if you are loading the navigation controller from another xib, you’ll modify the nav bar in the tab bar xib.

    else you can below you can follow the best url for the same:

    http://books.google.co.in/books?id=2yYlm_2ktFYC&pg=PA179&lpg=PA179&dq=navigation+with+the+tab+based+application+iphoneSDK&source=bl&ots=nf2YYjX5Am&sig=COpHj9wOtsDChQBglpsljSTsElw&hl=en&ei=3ZoFTeGSOI_tsgbc_Iz6CQ&sa=X&oi=book_result&ct=result&resnum=6&ved=0CDAQ6AEwBQ#v=onepage&q&f=false

    http://www.youtube.com/watch?v=LBnPfAtswgw

    Hope this will surely solve your problem.

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

Sidebar

Related Questions

So i have this very basic ipad view controller and i was doing some
i have this array called favorites referenced in my app delegate. When i access
I have a fairly simple view hierarchy in my iPad app. Window -> RootView
I have a modal view which gets the user to select some data to
I have stored the data into the plist(documents directory) and retrieved the data from
i have an application which uses CoreData/.sqlite to store my data, a tab bar
I have created a Tab Bar Application, removed the default FirstView and SecondView and
Why am I getting this: An error occurred Application error Exception information: Message: Select
been having this problem for a few days now and can't seem to find
On my webpage I am displaying a table of data and I want 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.