Basically, I have a timer set up in an uiapplication to check if the user is idle, and what I want to happen is that if the user is idle long enough, the viewcontroller on top will be the initial log in one.
The timer part works, I've tried it with NSlog.
So basically, I need to find out the current view controller, if it isn't the registration or login view controllers, it should go to the initial log in view controller.
How do I go about getting the current view controller, then switching, in the UIapplication class?
If it's any help, I'm using a navigation controller, not a tab bar controller.