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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:28:34+00:00 2026-05-23T09:28:34+00:00

I have a navigation view controller that will show the table view of my

  • 0

I have a navigation view controller that will show the table view of my application, but I can’t get it to move to a new view when I tap an entry in the table. How do I link a new view to an element in the parent view?

  • 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-23T09:28:34+00:00Added an answer on May 23, 2026 at 9:28 am

    You have a navigation view controller?

    You either have a navigation controller or a view controller.

    A navigation controller has a stack of view controllers and pushes and pops between them.

    In regards to your question you need to define the tableview’s delegate as self. If you’re subclassing UITableViewController then you don’t have to worry about this.

    Then implement this method:

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    
        // here is where you can "push" a new view controller
        MyNextViewController *nextVC = [[MyNextViewController alloc] initWithNibName:@"MyNextViewController" bundle:nil];
        [nextVC setTitle:@"Next View Controller"];
        [self.navigationController pushViewController:nextVC animated:YES]; // this is where the next page is "pushed"
        // remember to release
        [nextVC release];
    
    }
    

    So in the code above we’re using the delegate method didSelectRowAtIndexPath which gets called when the user “clicks” a table view cell.

    You can use the indexPath object to find out which row was tapped. int rowIndex = [indexPath row]; will get you the row index of the cell that was tapped.

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

Sidebar

Related Questions

I have View Controller with a (navigation controller) that can flip between 2 views
I have created one navigation based application. In that first view show me the
I have an application with navigation controller and some table view controller. In table
I have a navigation controller which also has a table view. I want to
I have a navigation controller with a table view. In most tutorials I've read
I have a view controller that contains a table view, the items in the
In my IB I have a navigation controller which has in it a view
I have a navigation view with a cell that has something as simple as
I have a UITabBar in the detail view of my navigation based application. I
I have a ViewController (with navigation) that needs to show 7 different content layouts

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.