Ricardo Augusto
Ricardo Augusto

Reputation: 558

UIStoryBoard - Same ViewController/Xib, different segue path

This is my scenario: I have an app with TabBar and NavigationController using storyboard. TabBar has item A and item B, both an identical UITableViewController and cells prototypes, it only fetch the info from different locations.

How can I identify from which UIStoryBoardSegue it came? Or there is a better way to do this (maybe duplicate Xib and UIViewController)?

Here a picture of my UIStoryBoard:UIStoryBoard

Upvotes: 0

Views: 433

Answers (2)

Bjorn Svensson
Bjorn Svensson

Reputation: 46

Seems strange to have two Navigation Controllers pointing to the same Table View. Why don't you just copy the Table View in the Story Board and use the same class?

Upvotes: 1

Anila
Anila

Reputation: 1136

I was recently working on a project with the same structure and I added two tableviews. But i think it's possible to have one tableview with two different source views. You can try using a navigation controller and when you push to the table view the "back" button will bring you back to the origin.

Upvotes: 2

Related Questions