title: Present View Controller modally from xib file
body: <p>I have a xib file associated to a UIViewController custom class (ZocaloPlayerViewController)</p>
  
  <p><a href="https://i.stack.imgur.com/fWJod.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fWJod.png" alt="enter image description here"></a></p>
  
  <p>and im trying to present a UIViewController (made in storyboard) modally with flip horizontal </p>
  
  <p><a href="https://i.stack.imgur.com/er06r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/er06r.png" alt="enter image description here"></a></p>
  
  <p>but i am getting an error:</p>
  
  <p>This is how im trying to present the view controller</p>
  
  <pre><code>ShowDetailsArtistAlbumViewController *vc = [[ShowDetailsArtistAlbumViewController alloc] initWithNibName:@"ShowDetailsArtistAlbumViewController" bundle:nil];
  vc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
  [self presentViewController:vc animated:YES completion:^{
  
  }];
  </code></pre>
  
  <p>But i am getting this error...</p>
  
  <pre><code>Uncaught exception: Could not load NIB in bundle: 'NSBundle &lt;/var/mobile/Containers/Bundle/Application/57C2AD20-51DB-4C43-BB8F-2E8F22CD2E2A/MyMusicApp.app&gt; (loaded)' with name 'ShowDetailsArtistAlbumViewController'
  </code></pre>
  
  <p>I was trying with </p>
  
  <pre><code>[self.parentViewController presentViewController:vc animated:YES completion:^{
  
  }];
  </code></pre>
  
  <p>But nothing happens...</p>
  
  <p>EDIT:
  I tried this way</p>
  
  <pre><code>UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
  ShowDetailsArtistAlbumViewController *vc = [sb instantiateViewControllerWithIdentifier:@"ShowDetailsArtistAlbumViewController"];
  vc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
  [self presentViewController:vc animated:YES completion:^{
  
  }];
  </code></pre>
  
  <p>The view controller is presented but im getting a black view but nothing inside</p>