title: Reusing One UITableView for Directory Listing Application
body: <p>Hello fellow StackOverflowers, I am in a bit of a dilemma with trying to condense the code in my application, iEngineering, that is available for free on the AppStore. Please download it so you can follow along with the rest of this post.</p>
  
  <p>Alright, so when creating the current version of iEngineering, I used a new UIViewController with a UITableView for every "new" screen for all of the listing (table view) screens. The one story board file I am using currently has ~100 view controllers, takes 10 minutes to load, and several minutes to load the simulator. Big, big rookie mistake.</p>
  
  <p>I am currently in progress in developing a plan to condense all of the UITableViewControllers into a single reusuable UITableViewController if it's feasible. However, I am running into trouble in figuring out what topics I should research to learn out how to refresh/present an updated listing (table view) in the view controller if you segue/transition to a subdirectory screen of the app. For example, selecting "Chemical Engineering" in the home screen and transitioning to the next listing screen that displays the following: "General Chemistry, Fluid Mechanics, Reactor Design, Separations, and Thermodynamics."</p>
  
  <p>Would this be a reasonable/feasible task to condense down my current project? If so, what topics should I research to figure out how to do the transitioning/updating to a new table view screen?</p>
  
  <p>In the images below, I am trying to condense the view controllers into only a couple of view controllers (Note: The image doesnt display the 80+ view controllers off the screen. xCode wouldn't zoom out anymore.)</p>
  
  <p><a href="https://i.stack.imgur.com/onKf5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/onKf5.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/EyE0X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EyE0X.png" alt="enter image description here"></a></p>