Im trying to pass data from a string in my `popOverViewController` back to my mainVC as string. But i can't figure out how to do this, so please help anyone.

My mainVC segue func :

```
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
    if segue.identifier == "popoverSegue" {
        let popoverViewController = segue.destinationViewController 
        popoverViewController.modalPresentationStyle = UIModalPresentationStyle.Popover
        popoverViewController.popoverPresentationController!.delegate = self

    }
}

```

My popOverVC:

Im trying to pass the valueSelected back to mainVC

```
var pickerString = NSArray() as AnyObject as! [String]
var valueSelected = String()

@IBOutlet weak var picker: UIPickerView!

@IBAction func pickButton(sender: AnyObject?) {

    // need to send valueSelected back to previous navigated view
    print("Value: ", valueSelected)
    dismissViewControllerAnimated(true, completion: nil)
}

```

> 
> need to send `valueSelected` string back to previous navigated view.
> 
> 
>