title: Subview position on the parent view iPhone
body: <p>I m using a menu bar like this (using UIBUTTONS on an ImageView)</p>
  
  <p><img src="https://i.stack.imgur.com/X39NE.png" alt="enter image description here"></p>
  
  <p>Now what I required to do is that when I click on each button a popover (subview) should come up like:</p>
  
  <p><img src="https://i.stack.imgur.com/MOdHJ.png" alt="enter image description here"></p>
  
  <p>How can I do that?</p>
  
  <p>My second question is that when i click on the same button or anywhere else on the view then the popover should get hide and if i click on another menu button popover should get hide from previous button and should be shown on other button...</p>
  
  <p>My project is already created with UIviewcontroller, so i think it would be much difficult to include the tab bars</p>
  
  <p>any help please ...</p>
  
  <pre><code>-(IBAction)buttonNotify:(id)sender{
  
  popOver.frame = CGRectMake(173, 385, 88, 33);
  
  [self.view addSubview:popOver];
  </code></pre>
  
  <p>}</p>