Xcode 6 Storyboard Unwind Segue with Swift Not Connecting to Exit

前端 未结 11 2057
栀梦
栀梦 2020-12-02 09:20

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

11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 09:37

    Instead of using the Objective-C workaround, Xcode 6 Beta 4, which can now be installed, supports the connection of unwind segues in the Interface Builder. You can update now from the iOS Dev center. Control-click and drag from the UI item you want to trigger the segue to the exit icon, and select the function unwindToSegue after having put the following code in the destination view controller.

    @IBAction func unwindToSegue (segue : UIStoryboardSegue) {}
    

提交回复
热议问题