title: iOS: present view controller programmatically
body: <p>I'm using the <code>presentViewController:animated:completion:</code> method to go to another view controller.</p>
  
  <p>This is my code:</p>
  
  <pre><code>AddTaskViewController *add = [[AddTaskViewController alloc] init];
  [self presentViewController:add animated:YES completion:nil];
  </code></pre>
  
  <p>This code goes to the other <code>UIViewController</code> but the other controller is empty. I've always been using storyboards but now I need this to be done in code.</p>