title: How to switch to next controller on button click in ios (programmaticaly)
body: <p>I am working on single view application. On click of button i want to switch to next page(let say menu controller). Please specify what changes I have to make in appdelegate to add a navigation controller as I am completely new to iOS.</p>
  
  <pre><code>[button addTarget:select action:@selector(buttonClick) forControlEvents:UIControlEventTouchUpInside]; and implement the selector as
  
  -(void)buttonClick{
  UIViewController *menu = [[UIViewController alloc] init];
  [self.navigationController pushViewController:menu animated:YES];
  }
  </code></pre>