title: Full Screen Custom Popover issue in iOS7 and iOS8
body: <p>I am developing an app for iPad only. In which in for one functionality i want to display <strong>FullCustom Popover</strong>.</p>
  
  <p>For that my code is as below:-</p>
  
  <pre><code>DuplicateViewController *viewControllerForPopover =
      [self.storyboard instantiateViewControllerWithIdentifier:@"DuplicatePopoverVC"];
      viewControllerForPopover.arr_studentDetail = self.arrStudentDetail;
      viewControllerForPopover.dictSelectedProg = dictSelectedProgram;
  
      self.popover = [[UIPopoverController alloc]
                      initWithContentViewController:viewControllerForPopover];
      [self.popover setPopoverContentSize:CGSizeMake(self.view.frame.size.width, self.view.frame.size.height)];
  
      viewControllerForPopover.modalPresentationStyle = UIModalPresentationFullScreen;
      [self.popover setBackgroundColor:[[UIColor darkGrayColor] colorWithAlphaComponent:0.4]];
      [self.popover presentPopoverFromRect:self.view.bounds inView:self.view permittedArrowDirections:0 animated:YES];
  </code></pre>
  
  <p>I set popover size and tried with other option but can't make it full screen.</p>
  
  <p><strong>ViewDidLoad -> DuplicateViewController</strong></p>
  
  <pre><code>[view_main.layer setBorderWidth:5.0f];
  [view_main.layer setCornerRadius:25.0f];
  [view_main.layer setBorderColor:[UIColor colorWithRed:(29.0f/255.0f) green:134.0f/255.0f blue:140.0f/255.0f alpha:1.0f].CGColor];
  </code></pre>
  
  <p>But while running App, It display as below:-</p>
  
  <p><img src="https://i.stack.imgur.com/AhgqH.png" alt="enter image description here"></p>
  
  <p>Please help me to display full screen Popover. Thank you so much in advance.</p>