[Solved] How do I tell which button called another view in swift 4?


First of all instead of giving each button segue for same view, i recommend you to use only one segue.

One approach is to simply use a indicator int or string depending upon your logic in items table view and assign it accordingly in prepare for segue method by getting destinationVC. And handle the indicator on list items view on loading. (in this approach you have only one segue and you will be able to perform the work).

As far as table view approach is concerned. use tableview for list of items and use tableViewCell for individual items.

4

solved How do I tell which button called another view in swift 4?