# Segue won't unwind

**URL:** <https://forums.kodeco.com/t/segue-wont-unwind/32952>\
**Category:** iOS\
**Created:** [August 5, 2017, 6:32am UTC](https://forums.kodeco.com/t/segue-wont-unwind/32952 "2017-08-05T06:32:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brower](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brower/32/102075_2.png) [@brower](https://forums.kodeco.com/u/brower)\
**Post date:** [August 5, 2017, 6:32am UTC](https://forums.kodeco.com/t/segue-wont-unwind/32952/1 "2017-08-05T06:32:01Z")

</div>

I control-dragged a bar button item on the navigation bar of a table view controller that uses a navigation controller to the exit icon of the table view controller. I was able to select an unwind function for it. However, when I run the code, it won’t unwind. when I click the bar button item, it doesn’t do anything. Neither the prepareForSegue nor the unwind function is executed. What should I check?

---

<div class="post-metadata">

**Author:** ![scy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/scy/32/105896_2.png) [@scy](https://forums.kodeco.com/u/scy)\
**Post date:** [August 5, 2017, 4:56pm UTC](https://forums.kodeco.com/t/segue-wont-unwind/32952/2 "2017-08-05T16:56:47Z")

</div>

Have you set the identifier of the Unwind segue ?

---

<div class="post-metadata">

**Author:** ![brower](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/brower/32/102075_2.png) [@brower](https://forums.kodeco.com/u/brower)\
**Post date:** [August 5, 2017, 9:53pm UTC](https://forums.kodeco.com/t/segue-wont-unwind/32952/3 "2017-08-05T21:53:09Z")

</div>

Yes. I got it to work somehow. This is erratic.

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [January 18, 2018, 10:32pm UTC](https://forums.kodeco.com/t/segue-wont-unwind/32952/4 "2018-01-18T22:32:09Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
