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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:14:41+00:00 2026-06-08T22:14:41+00:00

I am trying to drilldown and drillup throughout a hierarchical menu using a series

  • 0

I am trying to drilldown and drillup throughout a hierarchical menu using a series of UITableViewControllers.
Since each UITableViewController is exactly the same except for its particular datasource, I am only using one UITableViewController class. For example, level 1 is an array of last names, level 2 is an array of first names, level 3 is an array of birthdates. Rather than have 3 UITableViewControllers (one for the last names, one for the first names, and one for the birthdates), I have only one UITableViewController and just alloc/init a brand new UITableViewController, but initialize it with the datasource arrays with each successive drilldown (i.e., didSelectRowAtIndexPath). If I needed to drill down to a fourth level, I could just switch out the arrays and we’re all good. It scales better that way.

I can go “forwards” and drill down correctly. It’s flawless. But when I go backwards, i.e., click the “back” button of the UINavigationController, I am getting the “parent’s” data indeed, or so it appears. But when I actually click on a cell to go forwards again, it looks like my datasources are actually not being switched out under the hood. It appears to be cached correctly, but when I go to click on the data, actually level 2’s data source is not actually backed by level 2’s data anymore. It’s actually got level 3’s data, which is the UITableViewController that I just popped off the stack.

Do I need to override the UINavigationController’s “back button” and then update my datasources when popping off the stack? I am not sure what I am missing here. My UITableViewCode is almost 1000 lines long, and this is the generic problem that I’m facing.

Table1    Table2                     Table3
smith -->  Joe -->                   1/1/1980

hit "back"
          Table2
          Joe is displayed (correct)

          tap "Joe" again -->        6/23/1976  (indicating that this is someone else's birthdate, so the datasources have gotten mixed up.)  

So going forwards is correct, but going backwards seems to mix up datasources.

  • 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-06-08T22:14:43+00:00Added an answer on June 8, 2026 at 10:14 pm

    Consider taking a look at how this project does it. It is doing the exact thing you describe instead it creates table hierarchies from a plist. Navigating back and forward in the sample app works fine, and you can alter the plist to include more levels.

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

Sidebar

Related Questions

trying to get same string on tooltip as is in the Text e.g. Text=<%#
Trying to execute a Powershell cmdlet from a MVC 3 Controller using impersonation but
I'm trying to use Worknik's API to iterate each text definition of a given
Trying to customize my back button in a drilldown navigation controller. On my one
Trying to install rattle on a windows server 2008 R2 64bit machine, using 64-bit
Trying to build out an exception if move.UserId does not equal currentUserId then Redirect
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Trying to figure out how I can do this properly. The print_r looks like
Trying to copy the msdn refernce here doesn't work and gives an error I
Trying to get a wildcard search to pick up on any text in org_name

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.