title: switch for a TabBarView without StoryBoard
body: <p>I have a ConnectionViewController and when i click on the Test button, i would like to switch for a tabViewController.</p>
  
  <p>In my ConnectionViewController :</p>
  
  <pre><code>- (IBAction)testButton:(id)sender {
  
      TabBarViewController *tabBarViewController = [[TabBarViewController alloc] init];
  
      [self presentViewController:tabBarViewController animated:YES completion:nil];
  
  
  }
  </code></pre>
  
  <p>but when i click on my test button, the TabBarView is black, without anything.</p>
  
  <p>What could i do to fix that ? I would like a modal segue, not a push.</p>
  
  <p>Thx a lot</p>
  
  <p><strong>[EDIT] : The solution is to create a custom segue with a class like CustomSegue.m with this method :</strong></p>
  
  <pre><code>-(void) perform {
  
      ConnectionViewController *src = (ConnectionViewController*) self.sourceViewController;
      TabBarViewController *dest = (TabBarViewController*) self.destinationViewController;
  
      [UIView transitionWithView:src.navigationController.view duration:0.2 options:UIViewAnimationOptionTransitionFlipFromLeft animations:^{
  
          [src presentViewController:dest animated:YES completion:NULL];
  
      }
                      completion:NULL];
  
  }
  </code></pre>