I have three view controllers that push each other on to the navigation controller.
ViewController1 may push VC2 or VC3
VC2 may push VC3
That means, either VC3 is opened by VC1 or VC2. VC1 is a subclass of UITableViewController and VC2 is a subclass of UIViewController.
Now, in VC3 I want to know if VC1 or VC2 created VC3. How can I do that?
You could check;
that returns a
UIViewController.According to what you need, you may do