0

I would like to know which ViewController is currently the active one. in other words, the one shown to the user?

user836026
  • 10,608
  • 15
  • 73
  • 129

1 Answers1

1

please phrase your question a little bit more precise. from what i understand you want to do, you could for example use notifications (Tutorial to Notifications) and broadcast the name/type/object of your current viewcontroller to your application, whenever a new controller gets created & active.

please see this similar question which has good answer as well: How can I know which ViewController is active?

Community
  • 1
  • 1
Sebastian Flückiger
  • 5,525
  • 8
  • 33
  • 69