I would like to know which ViewController is currently the active one. in other words, the one shown to the user?
Asked
Active
Viewed 212 times
0
-
2If you need to know where you are in the view hierarchy, then you're doing it wrong. – sudo rm -rf Apr 06 '12 at 22:00
1 Answers
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