When trying to connect a Navigation Bar Button to the Exit item of a ViewController in Xcode 6 (not really sure if it\'s an Xcode 6 problem but worth mentioning as it is in
This is a known issue with Xcode 6:
Unwind segue actions declared in Swift classes are not recognized by Interface Builder
In order to get around it you need to:
class MyViewController to @objc(MyViewController) class MyViewControllerCreate an Objective-C header file with a category for MyViewController that redeclares the segue action.
@interface MyViewController (Workaround)
- (IBAction)unwindToMyViewController: (UIStoryboardSegue *)segue;
@end
In the storyboard, select the instance of MyViewController, clear its custom class, then set it back to MyViewController.
After these steps you are able to connect buttons to the exit item again.
Xcode 6 Release Notes PDF, Page 10