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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:34:13+00:00 2026-05-13T07:34:13+00:00

I’ve Created a UITableViewController subclass. Do I only need one controller? Do I just

  • 0

I’ve Created a UITableViewController subclass. Do I only need one controller? Do I just instantiate multiple instances of that one subclass?

The iPhone App I’m building will start with a Table of a list of people. If the user taps a person, a new table will be pushed in with a list of Companies they’ve worked for. If the user then taps a company, they’ll see a list of Job Positions. And if they tap a position they’ll see a list of people holding those positions.
This could go on forever, and the user could always back up the list.

The App Delegate instantiates the Navigation Controller and the Table View Controller and then pushes it onto the Navigation Controller. But when a user taps a row, now the TVC is creating another TVC.

  1. Is that right or should the
    AppDelegate be instantiating all
    TVC’s? Or does it work out since
    they all get pushed onto the Nav
    Controller anyway?

  2. Does each Table View instance
    need to have a different name or can
    they all be called ‘mainTVC’ or
    something like that?

    tableViewController *mainTVC = [[tableViewController alloc] init];
    
  3. Won’t I run out of memory? Do i
    need to start dropping Table Views
    when they’re 2 or 3 levels away from
    current, and then re-create it if
    the user backs up to it?

  • 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-13T07:34:13+00:00Added an answer on May 13, 2026 at 7:34 am

    I’d create a view controller for each type. Presumably you’ll want to have special display characteristics like a custom tableview cell to display job positions slightly differently then you would people names.

    Other then that, @Ben Gottlieb’s answer should work quite well. Use lots of view controllers and handle the didReceiveMemoryWarning: method.

    One more thing, if the user drills down so far that you want to say they’ll never go all the way back (sort of like having an undo stack) you can use the setViewControllers:animated: UINavigationController method to reset the stack to a certain size (say 15 to implement an ‘undo buffer’ of 15). With this method you can make sure that the first view controller is always your root view controller and the rest are all drilldown instances.

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

Sidebar

Ask A Question

Stats

  • Questions 402k
  • Answers 402k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Create your repeater like so: <asp:Repeater ID="rptTest" runat="server" OnItemDataBound="rptTest_ItemDataBound"> <ItemTemplate>… May 15, 2026 at 4:59 am
  • Editorial Team
    Editorial Team added an answer Outputting \b will move the output cursor left 1 cell,… May 15, 2026 at 4:59 am
  • Editorial Team
    Editorial Team added an answer Why not check out the array functions on the PHP… May 15, 2026 at 4:59 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.