title: Present View Controller not working with ios 9
body: <p>Present view controller is not working with ios 9,
  when I press the button it not redirected to present view controller.</p>
  
  <p>Why this happens ?</p>
  
  <blockquote>
    <p>I had tried the below code</p>
  </blockquote>
  
  <pre><code> RegistrationViewController * viewController =[[UIStoryboard storyboardWithName:@"Registration" bundle:nil] instantiateViewControllerWithIdentifier:@"RegistrationViewController"];
   [self presentViewController:viewController animated:YES completion:nil];
  </code></pre>
  
  <blockquote>
    <p>I had also tried the below code</p>
  </blockquote>
  
  <pre><code> UIStoryboard* storyboard = [UIStoryboard storyboardWithName:@"Registration"
                                                           bundle:nil];
   RegistrationViewController *add =
   [storyboard instantiateViewControllerWithIdentifier:@"RegistrationViewController"];
   [self presentViewController:add animated:YES completion:^{
          dispatch_async(dispatch_get_main_queue(), ^{
              [self presentViewController:add
                                 animated:YES
                               completion:nil];
          });
    }];
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <blockquote>
    <p>My complete code here. I am using Xcode 7 and running it with ios 9</p>
  </blockquote>
  
  <pre><code>#import "LoginViewController.h"
  #import "RegistrationViewController.h"
  
  @interface LoginViewController ()
  
  @end
  
  @implementation LoginViewController
  
  - (void)viewDidLoad {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
  }
  
  - (void)didReceiveMemoryWarning {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  
  - (IBAction)actionRegistrationClicked:(id)sender
  {
      RegistrationViewController * viewController =[[UIStoryboard storyboardWithName:@"Registration" bundle:nil] instantiateViewControllerWithIdentifier:@"RegistrationViewController"];
       [self presentViewController:viewController animated:YES completion:nil];
  
  }
  @end
  </code></pre>
  
  <blockquote>
    <p>Registration view controller</p>
  </blockquote>
  
  <pre><code>#import "RegistrationViewController.h"
  
  @interface RegistrationViewController ()
  
  @end
  
  @implementation RegistrationViewController
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
  }
  
  - (void)didReceiveMemoryWarning
  {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  @end
  </code></pre>