Reputation: 2754
Finding the view controllers presented at run-time by traversing view controller hierarchy is not the thing I am asking here, I know it is trivial. I simply want to get class names of all view controllers that "might" be presented/pushed for the current build. I think this can be achieved by recursively traversing files in project folder hierarchy. But getting the class name cannot pave a way for us to check whether that class is an UIViewController
subclass. Maybe it is possible in a way. If you know an approach to realize this task, please share with me.
Upvotes: 0
Views: 312
Reputation: 16735
Programmatically, I'm not sure of how you'd accomplish this, however you could dig up the view controllers with a Regex string in the "Find Navigator":
^class.*: UIViewController$
Upvotes: 1