I have a Login storyboard that I instantiate whenever the user logs in. I have a main storyboard that is the actual application.
When my application is set to inactive ( closing the app ) and then re-activated ( opening the app again ) the AppDelegate checks to see if the 2 minute timeout has occurred. If so I want to show an alert that it has timed out and this works great.
The problem I have is that if you're on the Login screen I don't want to show the message. Since my Storyboard uses a TabBarController, I don't have a valid navigation controller. How do I determine if the LoginViewController is currently being shown from the App Delegate? How do I get the top most View controller's class name?
NavigationController is null, fyi