title: Pass Data To Objective-C View Controller From Swift View Controller
body: <p>I am trying to pass data from a Swift View Controller (viewControllerA) to a Objective-C View Controller (viewControllerB) with the following code: </p>
  
  <pre><code>override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
      if(segue.identifier == "ViewControllerB") {
  
          var navController : UINavigationController! = UINavigationController()
  
          navController = segue.destinationViewController as! UINavigationController
  
          let viewControllerB : ViewControllerB! = ViewControllerB()
  
          viewControllerB.navigationController?.topViewController
  
          // Not sure how to alloc init code in an Objective-C Class in Swift file
  
          viewControllerB.dictionaryB = [NSObject : AnyObject]()
          viewControllerB.arrayB = [AnyObject]()
  
          viewControllerB.dictionaryB = self.dictionaryA
          viewControllerB.arrayB = self.arrayB
  
      }
  }
  </code></pre>
  
  <p>My properties (dictionaryB &amp; arrayB) are coming up null after prepareForSegue is called. How can I fix this?</p>