0
votes

Hi I am writing a program and I ran into a problem. I have 4 view controllers. Vc1, Vc2, and Vc3 modal segue to Vc4. I was wondering how to find out which View controller segued to Vc4. Any help will be appreciated.

1

1 Answers

3
votes

The presentingViewController relationship should be setup between the 2 view controllers automatically so you just need to query the property from the presented view controller.