title: Passing Data through View Controllers with Swift without Using Storyboard
body: <p>I am trying to create a transition between two View Controllers (the second presented modally) that passes data parsed from an API. A button is created based on this data (it affects what the button says). This is within the closure of an API call, and I store the returned data into a variable within the class (i.e. self.data = returnedData)</p>
  
  <pre><code>let button   = UIButton.buttonWithType(UIButtonType.System) as UIButton
  button.frame = CGRectMake(0, 100, UIScreen.mainScreen().bounds.width, 50)
  button.backgroundColor = UIColor.whiteColor()
  button.setTitle("\(buttonTitleInfo)", forState: UIControlState.Normal)
  button.addTarget(self, action: "buttonAction:", forControlEvents: UIControlEvents.TouchUpInside)
  
  self.view.addSubview(button)
  </code></pre>
  
  <p>Then:</p>
  
  <pre><code>func buttonAction(sender:UIButton!)
  {
      // the data is usable here but I don't know how to pass it via this button 
      let viewController:UberWebviewController = UberWebviewController()
      self.navigationController?.presentViewController(viewController, animated: true, completion: nil)
  }
  </code></pre>
  
  <p>I am not using Storyboard or IB and most of the tutorials/solutions I have found use things specific to those.</p>
  
  <p>How can I pass the returned data without using those?  </p>