title: can't dismiss presentModalViewController
body: <p>i have two view controllers in iphone application.</p>
  
  <p>1.) FirstVC</p>
  
  <p>2.) SecondVC</p>
  
  <p>In my FirstVC i have one button. By tapping on that button i opened SecondVC in <code>presentModalViewController</code>. look bellow code.</p>
  
  <pre><code>- (IBAction)buttonClicked:(id)sender
  {
      SecondVC *secondVC = [SecondVC alloc] initWithNibName:@"SecondVC" bundle:nil];
      [self.navigationController presentModalViewController:secondVC animated:YES];
  }
  </code></pre>
  
  <p>now moved to SecondVC. On SecondVC i have create navigation bar as well as "cancel" button as a leftBarButtonItem. i set a button clicked event on cancel button. in that method i want to dismiss SecondVC. bellow method is in SecondVC. look bellow code.</p>
  
  <pre><code>- (void)cancelButtonClicked
  {
    [self dismissModalViewControllerAnimated:YES];
  }
  </code></pre>
  
  <p>This code dosen't work. i can't dismiss SecondVC by this code. Please suggest another tricks.</p>