I have been reading that unwind segue\'s are bugged in Xcode 6. I am using Xcode 6.1.1 and I use swift.
I use the \"Back\" button that is put by the navigation controlle
Got it working on Xcode 6.2. My case is ViewController A presenting B modally. Unwind setup steps below:
In A, write an IBAction
-(IBAction)unwindFromB:(UIStoryboardSegue *) unwindSegue
{
ViewControllerB *vc = [unwindSegue sourceViewController];
// get whatever data you want to pass back from B
}
In storyboard, find B and right-click the 'Exit' button at the top, then the 'Presenting Segue' menu will list unwindFromB you've just created in A
Click the little '+' sign to the right and link it back to B, select 'manual'
Don't forget to set identifier of the unwind segue if you need to call it programmatically.