title: Perform segue in asynchronous block
body: <p>After the user is logged in my app I send his user profile to my server using a POST request and if it's done with success I call a success block to notify my controller and inside I want to perform a segue but the segue is not working, nothing happened.</p>
  
  <p>Here my code of the block :</p>
  
  <pre><code>RemoteCallManager   *rcm = [[RemoteCallManager alloc] init];
  
  if (![[NSUserDefaults standardUserDefaults] boolForKey:IS_FIRST_LAUNCH])
  {
      // Is first launch
      [rcm sendNewUserProfile:self.player andSuccessBlock:^(NSDictionary *result) {
  
          [[Utils sharedInstance] extractAndSaveSessionDataWithResultFromRequest:result];
  
          [(AppDelegate*)[[UIApplication sharedApplication] delegate] setPlayer:self.player];
          [(AppDelegate*)[[UIApplication sharedApplication] delegate] archivePlayerObject];
          [(AppDelegate*)[[UIApplication sharedApplication] delegate] archiveGameSession];
  
          [[NSUserDefaults standardUserDefaults] setBool:YES forKey:IS_FIRST_LAUNCH];
  
          [self performSegueWithIdentifier:@"pushToMenu" sender:self];
  
      } andErrorBlock:^(NSString *description) {
          NSLog(@"An error occured : %@", description);
      }];
  }
  else
  {
      // Is not first launch
      [self performSegueWithIdentifier:@"pushToMenu" sender:self];
  }
  </code></pre>
  
  <p>I tried to call the segue in dispatch_sync without success.</p>
  
  <p>Thanks for your help.</p>