title: Display ViewController as PopUpSubview?
body: <p>I have a ViewController with xib,.h,.m files. Now i want to display it as a popUpView in another viewController. so I did like this...</p>
  
  <pre><code>Second *view2 = [[Second alloc] initWithNibName:@"Second" bundle:nil];
  [view2.view setFrame:CGRectMake(20, 20, 280, 400)];
  {self.view addSubview:view2.view];
  </code></pre>
  
  <p>but the problem here I am able to set frame randomly, but the viewController contains a textField and button. They are not getting added at random positions on the view like some textField comes out of the frame of view added.</p>
  
  <p>After some googling i find this, but this not enough to solve my issue.</p>
  
  <p><a href="https://stackoverflow.com/questions/5955968/adding-a-viewcontroller-as-subview-programmatically">Adding a ViewConroller's View as subview programmatically</a></p>
  
  <p>How to solve it...</p>