title: Not able to navigate to another UIViewController programmatically iOS
body: <p>I am trying to navigate to "Home" view controller and for this I have written the following code in the ContainerViewController. But once the code executes, the application hangs and it show 100% CPU usage. Please help.</p>
  
  <pre><code>- (IBAction) home:(UIButton *)sender
  
  {
  
      HomeViewController *homeViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"HomeViewController"];
  
      [self.navigationController pushViewController:homeViewController animated:YES];
  
      //[self presentViewController:homeViewController animated:YES completion:nil];
  
  }
  </code></pre>