title: How would I use the same viewcontroller, but pass different information through it?
body: <p>so, my current problem is as follows. </p>
  
  <p>I would like to essentially use my current viewcontroller, but change the location settings somewhere else within the app and have the data pass though the viewcontroller with the updated location information.</p>
  
  <p>I'll elaborate. I'm currently utilizing the following code for reverse geocoding, and obtaining the users location.</p>
  
  <pre><code>func locationManager(manager: CLLocationManager!, didUpdateLocations locations: [AnyObject]!) {
  
      locationManager.stopUpdatingLocation()
  
      if(locations.count &gt; 0){
  
  
          let location = locations[0] as! CLLocation
  
          //            println(location.coordinate)
  
  
          if let currentLocatino = currLocation {
              if CLLocation(latitude: currentLocatino.latitude, longitude: currentLocatino.longitude).distanceFromLocation(location) &gt; 500 {
                  currLocation = location.coordinate
                  self.skip = 0
                  self.loadObjects()
  
              }
          }
          else {
              currLocation = location.coordinate
              self.skip = 0
              self.loadObjects()
          }
  
  
          CLGeocoder().reverseGeocodeLocation(CLLocation(latitude: currLocation!.latitude, longitude: currLocation!.longitude), completionHandler: {(placemarks, error) -&gt; Void in
  
  
              if error != nil {
                  println("Reverse geocoder failed with error" + error.localizedDescription)
                  return
              }
  
              if placemarks.count &gt; 0 {
                  let date = NSDate()
                  let formatter = NSDateFormatter()
                  formatter.dateStyle = .MediumStyle
                  formatter.stringFromDate(date)
                  let pm = placemarks[0] as! CLPlacemark
  
  
                  var testifempty = "\(pm.subLocality)"
                  if testifempty == "nil"
                  {
                      self.locationManager.startUpdatingLocation()
                      if let lbutton = self.lbutton{
                          lbutton.text = "Hey " + "\(pm.locality)" //+ "\n" + formatter.stringFromDate(date)
  
  
                      }
  
                  }
                  else
                  {
                      self.locationManager.startUpdatingLocation()
                      if let lbutton = self.lbutton {
                          lbutton.text = "Hey " + "\(pm.subLocality)\n" // + formatter.stringFromDate(date)
                      }
  
                  }
              }
  
              else {
                  println("Problem with the data received from geocoder")
              }
          })
  
      } else {
  
  
          println("Cannot fetch your location")
  
      }
  
  }
  </code></pre>
  
  <p>What I would like, it to essentially pass through a NEW location and set a boolean of sorts so that if said boolean is set to false, the NEW location information is passed through the app.</p>
  
  <p>I'm thinking about using a switch on the main viewcontroller, and changing the location on a secondary viewcontroller.</p>
  
  <p>I'm sorry if this is a long post, but I feel as though I'm right on the edge of figuring out how to do this but I need to be sure I'm going in the right direction.</p>
  
  <p>Maybe I could use a mapkit and use annotations?</p>