title: Navigate to another window from a popup in iPhone
body: <p>I used this <a href="https://github.com/martinjuhasz/MJPopupViewController" rel="nofollow">SampleCode</a> and created two pop-ups, say pop-up1 and pop-up2. From Pop-up1 if a button is pressed another pop-up2 will be displayed. From po-pup2 I need to go for another view. Till pop-up2 its fine, from pop-up2 I couldn't go for a separate view?</p>
  
  <p>I used the below code to remove the popupview.</p>
  
  <pre><code>[self dismissPopupViewControllerWithanimationType:MJPopupViewAnimationFade];
      imageShareSubViewController = nil;
  </code></pre>
  
  <p>I used used the below code to navigate to another view.</p>
  
  <pre><code>@autoreleasepool {
          ViewController *obj = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]autorelease];
          [self.navigationController pushViewController:obj animated:TRUE];
          obj = nil;
      }
  </code></pre>
  
  <p>But the above is not working fine ( i.e., i could navigate to another view ). How to solve this? Am I wrong anywhere?</p>