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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:15:06+00:00 2026-05-27T21:15:06+00:00

I am having an issue pushing my view controller from a tableview that was

  • 0

I am having an issue pushing my view controller from a tableview that was dropped into a viewController, and not a TableViewController.

I have found a thread on here with a solution here

pushViewController is not pushing

The problem is.. I have done his solution and my view still does not push. I have connected my tableview via ctrl+drag to the view controller and set both the dataSource and delegate. In the post i mentioned, they say the solution was to ‘create a referencing outlet from the tableview to the view controller.’ But I don’t exactly know what that means. So help with that would be good as well. I have followed this tutorial and am stuck on step 9 obviously.

The line of code not triggering is

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

My code is as follows…

viewTable methods

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{   
 NSLog(@"list Size: %@",list);
    return [list count];
}

 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath
{
    static NSString *CellIdentifier = @"Cell";

UITableViewCell *cell = (UITableViewCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

if(cell == nil){
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
}
CustomerListData *customer = [self.list objectAtIndex:indexPath.row];
cell.textLabel.text = customer.facilityName;

// cell.textLabel.text = @"Detail";
return cell;
}

-(void)setValue:(NSMutableArray*)array
{ 
//NSMutableArray *newArray = [[NSMutableArray alloc] init];
list = array;
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{

FacilityMissionListViewController *facility = [self.storyboard instantiateViewControllerWithIdentifier:@"facilityMissionList"];
[self.navigationController pushViewController:facility animated:YES]; 
//UINavigationController* navController = self.navigationController;
}

the very last commented out line is there to check if navigationcontroller was null. It is not.

From what I have gathered the issue here lies in the fact the table view is inside the view controller and its not a “tableviewcontroller.” This method apparently works if that is the case, but some other steps must be taken if not.. but I don’t know them.

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-27T21:15:06+00:00Added an answer on May 27, 2026 at 9:15 pm

    It sounds like your NavigationController is not set up correctly. Could you post the code that sets it up?

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

Sidebar

Related Questions

Having an issue here that I have tried everything I can think of but
We have a device that support SAE J1939 interface and having issue with finding
I'm having a javascript issue that's driving me completely insane. I have a collection
I'm having an issue with a query that currently uses LEFT JOIN weblog_data AS
I'm having an issue with a Flash/Flex erroring in Firefox but not IE. I
I'm having an issue with a standard ASP.NET page that has a TextBox and
Experts, I'm having issue when sending emails out. Currently, I have a feedback form
I am having issue when sending data from Service to Activity through Notification ,
I'm having issue with Action Listener of a JTable that being updated according the
One of my coworkers is having a problem pushing changes from git on his

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.