title: How to change pop-over view position iPad - obj C
body: <p>i am having little problem here. I have made a popout view activated on toolbard button click. However the view is not in the position i want. See screenshot
  <br>
  1st screen shows what i have and 2nd what i want. 
  btw: popview is done problematically. No xib or storyboard involved.<br>
  <img src="https://i.stack.imgur.com/7wOE8.jpg" alt="enter image description here"></p>
  
  <p>Some code </p>
  
  <pre><code> -(IBAction)addbutton:(UIToolbar *)sender;
  {
          //build our custom popover view
      UIViewController* popoverContent = [[UIViewController alloc]
                                          init];
      UIView* popoverView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];
      popoverView.backgroundColor = [UIColor blackColor];
  
      /*
       * Adding buttons programaticly to popout view
       * button code etc 
       */ 
      popoverContent.contentSizeForViewInPopover = CGSizeMake(400, 300);
  
      //create a popover controller
      self.popoverController = [[[UIPopoverController alloc]
                                 initWithContentViewController:popoverContent] autorelease];
  
  
      [popoverController presentPopoverFromRect:popoverButton.frame
                                              inView:self.view
                            permittedArrowDirections:UIPopoverArrowDirectionLeft
                                            animated:YES];
  
  
      //release the popover content
      [popoverView release];
      [popoverContent release];
  }
  </code></pre>
  
  <p>Thank you</p>