title: Remove Childview controller from parent viewController in ios
body: <p>I have a Parent <code>viewController</code> named "CenterViewConroller" and Child <code>viewController</code> named "InventoryViewController". I have a <code>UIButton</code> in <code>CenterViewController</code>, when i click the Button <code>childView</code> should appear at given dimension and when i again click on <code>parentcontroller</code> child view should disappear. </p>
  
  <p>I am adding child view on button click as:</p>
  
  <pre><code>InventoryViewController *invent = [[InventoryViewController alloc] initWithNibName:@"InventoryViewController" bundle:nil];
       // iRosaAppDelegate_iPhone *appDelegate = [UIApplication sharedApplication].delegate;
      [invent.view setFrame:CGRectMake(400,100,320,200)];
      [self addChildViewController:invent];
      [self.view addSubview:invent.view];
      [invent didMoveToParentViewController:self];
  </code></pre>
  
  <p>How do i remove <code>ChildView</code> on same button click?</p>