title: Swift: What instance of my class is in the view
body: <p>I'm building an app with a container view holding a tableView controller. I create this tableView, but I don't know how to access this object again so I can call function on it. Currently there is a BucketTableViewController object being created automatically (maybe from the storyboard). Then later I want to call a function on it and create another BucketTableViewController object. I can verify they are unique with print statement on that method. How do I set a variable for an object that is the original object?</p>
  
  <pre><code>import UIKit
  
  class FirstViewController: UIViewController {
  
  
      var bigArray = ["M", "A", "R", "C"]
      let delegate = UIApplication.sharedApplication().delegate as! AppDelegate
  
      override func viewDidLoad() {
          super.viewDidLoad()
          reachForWebsite()    
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  
      func reachForWebsite(){
          let url = NSURL(...)
          let task = NSURLSession.sharedSession().dataTaskWithURL(url!) {(data, response, error) in
              do {
                  ...
                  // HERE IS THE ISSUE
                  var bucketsVC = BucketTableViewController()
                  bucketsVC.updateBuckets(self.bigArray)
              } catch let myJSONError {
                  print(myJSONError)
              }
          }
          task!.resume()
      }
  }
  </code></pre>