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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:57:00+00:00 2026-05-23T11:57:00+00:00

I am surely losing my mind. I have coded what I assume to be

  • 0

I am surely losing my mind. I have coded what I assume to be a fairly standard usage of the
didSelectRowAtIndexPath: method here:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    NSInteger row = [indexPath row];
    if (row == 0){
        BuildingDescriptionViewController *buildingDescriptionViewController = [[BuildingDescriptionViewController alloc] initWithNibName:@"BuildingDescriptionViewController" bundle:[NSBundle mainBundle]];
        NSLog(@"self.navigationController0 is %@", self.navigationController ? @"not nil" : @"nil");
        [self.navigationController pushViewController:buildingDescriptionViewController animated:YES];
        [buildingDescriptionViewController release];
    }
    else if (row == 1){
        PostCommentViewController *buildingCommentViewController = [[PostCommentViewController alloc] init];
        NSLog(@"self.navigationController1 is %@", self.navigationController ? @"not nil" : @"nil");
        [self.navigationController pushViewController:buildingCommentViewController animated:YES];
        [buildingCommentViewController release];
    }
}

The NSLog informs that the navigationController is NOT nil, but nothing else happens. Neither viewController appears. In fact, just the NSLog occurs. Is there some esoteric usage I am missing? I have also tried [self presentModalViewController:buildingDescriptionViewController animated:YES]; and nothing happened. I could really use some assistance.
Thanks.

UPDATE:
Output per Sailesh’s suggestion below

2011-06-27 18:02:56.370 something[16331:207] buildingdecriptionviewcontrollerinit
2011-06-27 18:02:56.370 something[16331:207] ViewControllers before pushing: (
“BuildingProfileViewController: 0x7e89680”
)

2011-06-27 18:02:56.370 something[16331:207] ViewControllers after pushing: (
“BuildingProfileViewController: 0x7e89680>”,
“BuildingDescriptionViewController: 0x7e73d30”
)

2011-06-27 18:03:15.843 something[16331:207] buildingdecriptionviewcontrollerinit

2011-06-27 18:03:15.844 something[16331:207] ViewControllers before pushing: (
“BuildingProfileViewController: 0x7e89680”,
“BuildingDescriptionViewController: 0x7e73d30”
)

2011-06-27 18:03:15.844 something[16331:207] ViewControllers after pushing: (
“BuildingProfileViewController: 0x7e89680”
“BuildingDescriptionViewController: 0x7e73d30”
“BuildingDescriptionViewController: 0xcc2c8e0”
)

  • 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-23T11:57:01+00:00Added an answer on May 23, 2026 at 11:57 am

    I finally found the problem. I was confused by the fact that the self.navigationController wasn’t NIL. The issue was that the tableView had been added as a subview. I fixed it by pushing its viewController onto the navigation stack. Thanks to everyone that replied.

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

Sidebar

Related Questions

I have what must surely be a fairly common documentation need... I'm implementing a
I have coded the next function. But surely someone has a more elegant way
simple one here surely.. mybutton.addEventListener(MouseEvent.MOUSE_DOWN, thefunction); function thefunction(event:MouseEvent):void { gotoAndPlay(** frame on child movie
Surely I'm missing something pretty obvious... I have a field that is decimal with
I have the following string: I would surely like to go to school. Now,
Surely there is a framework method that given an array of integers, strings etc
I have been learning (slowly but surely) how to do deal with sqlite databases
I have seen other posts on this subject, but no valid solutions. Surely this
This is surely obvious but I'm stuck on it. I want to have something
This has got to be simple -- surely this method is supposed to work

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.