1

I am creating a popover in this way:

popoverController = [[UIPopoverController alloc]initWithContentViewController:browser];
[popoverController presentPopoverFromRect:CGRectMake(44, 400, 600, 800) inView:self.view permittedArrowDirections:0 animated:YES];

for some strange reason whatever CGRectMake size I put, the result is the same, the popover takes all the hight of my view and half of the width. Why is this?

4

1 回答 1

5

You may have to set contentSizeForViewInPopover property for your content view controller before presenting the popover.

于 2013-02-10T18:04:36.007 回答