title: How to pass value from one view controller to another swift?
body: <p>I'm building an iOS app using storyboards.I have implemented google maps in my app using swift.I'm getting address value in a label.I'm facing an issue to pass that label value to another class(First view controller) written in objective c.</p>
  
  <p>What is happening right now in storyboards in first view controller i have a button and on click on that modal segue perform open second view controller contain map and this map view controller contain done button to dismiss the view controller and get bact to the first view controller.</p>
  
  <p>Here is storyboard image:</p>
  
  <p><img src="https://i.stack.imgur.com/EjyPV.png" alt="enter image description here"></p>
  
  <p>here is my code:</p>
  
  <p>Map View Controller code in swift:</p>
  
  <pre><code>func reverseGeocodeCoordinate(coordinate: CLLocationCoordinate2D) {
      let geocoder = GMSGeocoder()
      geocoder.reverseGeocodeCoordinate(coordinate) { response , error in
  
        //Add this line
        self.addressLabel.unlock()
        if var address = response?.firstResult() {
          println("label657656558568===\(address)");
  
          //  self.addressLabel.text=address.valueForKey ("GMSAddress") as? NSString;
          self.addressLabel.text=address.valueForKey ("subLocality") as? NSString;
  
          println("label===\(self.addressLabel.text)");
          let labelHeight = self.addressLabel.intrinsicContentSize().height
          self.mapView.padding = UIEdgeInsets(top: self.topLayoutGuide.length, left: 0, bottom: labelHeight, right: 0)
          UIView.animateWithDuration(0.25) {
               self.pinImageVerticalConstraint.constant = ((labelHeight - self.topLayoutGuide.length) * 0.5)
            self.view.layoutIfNeeded()
          }
        }
      }
    }
  @IBAction func doTap(x:UIButton) {
  
       self.dismissViewControllerAnimated(true, completion: {});//This is intended to dismiss the Info sceen.
          println("pressed")
  
      }
  </code></pre>