title: my screen not move next screen on buttons click in iOS?
body: <p>i want to move one screen to next and code for that but its not move on next screen on button click.what is the problem in this code.</p>
  
  <p>i want to move one screen to next and code for that but its not move on next screen on button click.what is the problem in this code.</p>
  
  <pre><code>smsDisplayViewController.h
  
  @interface smsDisplayViewController : UIViewController&lt;UITextFieldDelegate&gt;
  {
  
  UIButton *btncomment;
  
  }
  
  - (IBAction)btncomment:(id)sender;
  
  
  @property(strong,nonatomic)UIButton *btncomment;
  
  @end
  
  
  smsDisplayViewController.m
  
  @implementation smsDisplayViewController
  @synthesize smsdisplay,Id,btncomment;
  
  - (IBAction)btncomment:(id)sender
  {
      CommentScreenViewController *viewController = [[CommentScreenViewController alloc]
                                                     initWithNibName:@"CommentScreenViewController" bundle:nil];
  
      [self.navigationController pushViewController:viewController animated:YES];
      NSLog(@"btn press");
  }
  
  [btncomment addTarget:self action:@selector(btncomment:)
       forControlEvents:UIControlEventTouchUpInside];
  </code></pre>
  
  <p>i want to move one screen to next and code for that but its not move on next screen on button click.
  i want to move one screen to next and code for that but its not move on next screen on button click.</p>