title: Transition viewcontrollers from anywhere in my app?
body: <p>I have a timer in my app.  I have local notifications for the the 30, 10 and 5 second marks.  All of my view controllers come from a main view controller.  The view that I want to transition to when the notifications are touched/slid obviously comes from that same main view as well.  Like this:</p>
  
  <p>MainView --> AnyView in the app
      |
      |
      V
  Timer view</p>
  
  <p>I am using storyboards.  And the client does not have time for me to rework everything all over again.</p>
  
  <p>I want the user to be able to touch a back button from the timer view, after they have entered that view.</p>
  
  <p>I have the Local Notification setup so that I post a notification throughout the app that I have most of my view controllers listening to, so I just need to figure out what to do in the method that gets called from the current view controller.  I am thinking I can popToRoot, from the navigation controller, and then performSegueWithIdentifier to the timer view controller.  I know how to do the first popToRoot part, but the performSegueWithIdentifier is where I am stuck.</p>
  
  <p>I want to popToRoot, then perform segue, from a pushed ViewController.</p>
  
  <p>I probably can't do that directly from the following method though.  What would be best?  Send another notification that only calls a method in my main view controller that does the perform segue?</p>
  
  <pre><code> -(void)viewDidLoad
   {
        [[NSNotificationCenter defaultCenter] addObserver:self
                                           selector:@selector(timerLocalNotification)
                                               name:TIMER_LOCAL_NOTIFICATION
                                             object:nil];
   }
  
   -(void)timerLocalNotification
   {
       [self.navigationController popToRootViewControllerAnimated:NO];
  
       // I want to perform a segue from RootViewcontroller.
   }
  </code></pre>
  
  <p>Thanks!</p>