Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Connect Storyboard Unwind Segue

Tags:

I am attempting to create an unwind segue but nothing will connect to it when ctrl+dragging. Also when I right click on the Exit icon there are no options available.

enter image description here

Any ideas?

like image 962
Chris Wagner Avatar asked Oct 09 '12 03:10

Chris Wagner


1 Answers

You need to have an IBAction defined on a view controller that takes an argument of type "UIStoryboardSegue *".

Something like this:

@interface MyViewController ... - (IBAction)unwindFromConfirmationForm:(UIStoryboardSegue *)segue { } ... @end 

Swift 3 Version

@IBAction func unwindToViewController(segue: UIStoryboardSegue) {      //code  } 

Provided by DoruChidean in https://stackoverflow.com/a/46199117/250190

like image 156
Jon Hess Avatar answered Oct 10 '22 01:10

Jon Hess