# Multiple unwind segues from a UITableView?

**URL:** <https://forums.kodeco.com/t/multiple-unwind-segues-from-a-uitableview/35195>\
**Category:** iOS Apprentice\
**Created:** [October 4, 2017, 2:34pm UTC](https://forums.kodeco.com/t/multiple-unwind-segues-from-a-uitableview/35195 "2017-10-04T14:34:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nobach](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/nobach/32/75702_2.png) [@nobach](https://forums.kodeco.com/u/nobach)\
**Post date:** [October 4, 2017, 2:34pm UTC](https://forums.kodeco.com/t/multiple-unwind-segues-from-a-uitableview/35195/1 "2017-10-04T14:34:37Z")

</div>

Hi, on page 111-114 in Tutorial 3 My Locations I read about how to connect one unwind segue from a tableview cell. That’s working fine but how to do if I need one tableview to have unwind segues to three different tableviews? I’m currently building an app that uses the same countryPickerTableView in three different places with slightly different behaviour, so I would need a way to connect different unwind segues to the cell, the problem is that the cell only allows me to pick one unwind Action. Is there a solution to this?

BR /Diez

---

<div class="post-metadata">

**Author:** ![fahim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fahim/32/110943_2.png) [@fahim](https://forums.kodeco.com/u/fahim)\
**Post date:** [October 5, 2017, 6:35am UTC](https://forums.kodeco.com/t/multiple-unwind-segues-from-a-uitableview/35195/2 "2017-10-05T06:35:32Z")

</div>

Do you mean that you will have different unwind segues based on the content of the cell? If so, you could either do multiple prototype cells for each type of content, or handle the unwind segue via code. This would depend on the situation - for example, if you have multiple table view rows which use the same unwind segue but you also have multiple types of unwind segues, then using multiple prototype cells might make sense.

On the other hand, if you need to use multiple unwind segues but you must have only one prototype cell (or the unwind segues actually match up with only one row from the table), you might want to consider performing the segue via code depending on the chosen cell.

Hope this helps 🙂

---

<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:** [March 20, 2018, 6:34am UTC](https://forums.kodeco.com/t/multiple-unwind-segues-from-a-uitableview/35195/3 "2018-03-20T06:34:44Z")

</div>

Closed on March 20, 2018, 6:34am UTC

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