Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

width and height in presentPopoverFromRect?

In presentPopoverFromRect:inView:permittedArrowDirections:animated:, method of UIPopoverViewController, for "presentPopoverFromRect", what I have understood is that "x" and "y" are where it will point its anchor but what "width" and "height" parameter will do?

I am playing with them by setting different values and result is very confusing.

like image 850
itsaboutcode Avatar asked Jun 24 '11 10:06

itsaboutcode


1 Answers

Call the setPopoverContentSize:animated: method on your UIPopoverController object, and that will set the height and width of your popover.

The position of the UIPopoverController is controlled by the presentPopoverFromRect:inView:permittedArrowDirections:animated: method.

like image 186
bryanjclark Avatar answered Oct 14 '22 16:10

bryanjclark