> For the complete documentation index, see [llms.txt](https://ryukiedev.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryukiedev.gitbook.io/wiki/ios/za-xiang/storyboard-zhong-unwindsegue-de-shi-yong.md).

# 11.Storyboard中UnwindSegue的使用

## 在最下层控制器中添加 `unwind segue` 的 `IBAction`

在一系列跳转关系的控制器中的根控制器中添加一个方法 如下图,我就该在红框控制器中添加 ![](http://ohfpqyfi7.bkt.clouddn.com/15082331645192.jpg)

之后在该控制器后续关联的控制器中点击 `exit` 可以看到这个 `segue` 了

![](http://ohfpqyfi7.bkt.clouddn.com/15094637614639.jpg)

想我这里联线的是按钮 `toMain` 点击按钮之后就会回到写有 `unwindSwgue` 的页面

![](http://ohfpqyfi7.bkt.clouddn.com/15094639919780.jpg)

当然传值操作和普通 `segue` 一样可以再下面的方法中进行

![](http://ohfpqyfi7.bkt.clouddn.com/15094641190591.jpg)
