title: Swift modifying table outside of tableViewController
body: <p>I am new to Swift and iOS development and I wanted to see if there was a better way to accomplish the following:</p>
  
  <p>In my app I have a table which is stored as an [someObject] and managed by a tableViewController.  I wrote all of the logic for managing the table in the tableViewController (adding objects, removing objects, etc).  However, the tableView itself, will only have the ability to delete objects from the table.  I would like to add the keys programmatically from a different part of the application.  The trouble with this is accessing the array which represents the table from outside the tableViewController.</p>
  
  <p>The best solution that I have thought of is making the array static so that I can modify it without having an instance of the tableViewController (the tableViewController is not going to be on the navigation stack when objects need to be added to the table).</p>
  
  <p>I don't want to segue to the tableViewController either.  The addition to the table should happen behind the scenes.</p>
  
  <p>Like I said, I am new to Swift and iOS development so I wanted to see if there was a better way to accomplish this.  I would prefer not to use statics if I don't have to.</p>