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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:50:51+00:00 2026-05-15T10:50:51+00:00

I have a UINavigationController with 3 levels of hierarchy: Menu->Submenu->Details. Menu and Submenu are

  • 0

I have a UINavigationController with 3 levels of hierarchy: Menu->Submenu->Details. Menu and Submenu are UITableViews whereas Details is some custom view controller.

I want to add ‘previous’ and ‘next’ buttons in the Details view that will allow me to directly go to the previous and next items from the current Submenu.

For example let’s say I have:

|Menu    |M1 Submenu |SM2 Details
--------------------------------
M1  ->   |SM1        |D1
M2       |SM2   ->   |D2
M3       |SM3        |D3  // Let's say we are here now
                     |D4
// ... etc ...

// The arrows represent items the user selected

So let’s say the app is currently showing the D3 Details view controller. This means that we are currently in M1->SM2->D3. Now in D3 if the user presses a ‘next’ button it should show D4. Similarly if s/he presses the ‘previous’ button it should show D2.

So the ‘next’ and ‘previous’ buttons essentially do the same thing as pressing the navigation controller back button and then selecting the next item in the list.

What would be the best way to implement this? Do I have to pop back up to the submenu and then push another Details controller? Do I call the submenu controller directly from the details view controller (if so how)?

Thanks.

  • 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-15T10:50:52+00:00Added an answer on May 15, 2026 at 10:50 am

    There’s really no need to call the parent controller. Here’s what you can do:

    Assuming you keep an array of “detail” items in Submenu Controller, instead of initializing the detail controller with the selected item, initialize it with the array and the selected index.

    Then, when the prev/next buttons are pressed, change the selected index and update the view accordingly.

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

Sidebar

Related Questions

I have a UINavigationController that pushes a view controller 3 levels down. I am
I have a uinavigationcontroller with 2 views. In the second view I have some
I have a UINavigationController consisting of a tableview I want to load some data
I have a UINavigationController full of UITableViews and I use custom cells in a
I have a UINavigationController and in one of it's view controller, I am making
I have a view controller hierarchy and the top-most controller is displayed as a
I have a UINavigationController with alot of viewControllers , and I want to add
I have a UINavigationController , and push from the root view controller to the
I have a UINavigationController which I add a subview to. [masterNavigationController.view addSubview:footerViewController.view]; The problem
What I want to do is to have my table view controller appear when

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.