title: How to perform Segue in AppDelegate?
body: <p>I am trying to complete an application on IOS 5.1 with Storyboard. Basically I am doing a dropbox app. Since I am using Dropbox SDK link to Dropbox is handled in AppDelegate.m. User has the option of be able to unlink from a session and link again in different View Controllers. So every time user link and unlinked app has to switch view from Appdelegate to a view controller that is unconnected to rootviewcontroller </p>
  
  <p>In original Dropbox's example Dropbox handled transition like following code</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
      if ([[DBSession sharedSession] handleOpenURL:url]) {
          if ([[DBSession sharedSession] isLinked]) {
              [navigationController pushViewController:rootViewController.photoViewController animated:YES];
          }
          return YES;
      }
  
      return NO;
  }
  </code></pre>
  
  <p>But I am using Storyboard with Navigation Controller and any of the following methods are not working I put methods in comments.</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
      if ([[DBSession sharedSession] handleOpenURL:url]) {
          if ([[DBSession sharedSession] isLinked]) {
  
              NSLog(@"App linked successfully!");
              // At this point you can start making API calls
  
              /*UIViewController *viewController = [[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:NULL] instantiateViewControllerWithIdentifier:@"MeetingViewController"];
              [self.navigationController pushViewController:viewController animated:YES]; */
  
             //[self performSegueWithIdentifier:@"xxxx" sender:self];
  
             /* LoginDropboxViewController *loginController=[[LoginDropboxViewController alloc] initWithNibName:@"LoginDropbox" bundle:nil];
              [navigationController pushViewController:loginController animated:YES]; */
  
          }
          return YES;
      }
      // Add whatever other url handling code your app requires here
      return NO;
  }
  </code></pre>
  
  <p>Here is the storyboard of the app
  <img src="https://i.stack.imgur.com/waXYG.png" alt="enter image description here"></p>
  
  <p>So how can I switch view in AppDelegate.h ?</p>
  
  <p>Note: If I add a segue and name the segue lets say goToMeeting
   [self performSegueWithIdentifier:@"goToMeeting" sender:self];</p>
  
  <p>error I get is : <code>No Visible @interface for 'AppDelegate' declares the selector performSegueWithIdentifier:sender</code></p>