I use popover to display the menu depending on the coordinate of the touch. In this case, popover uses the maximum height of self.view
CGRect popeverFrame = CGRectMake(touchPoint.x, touchPoint.y, 0, 0); [self.popover presentPopoverFromRect:popeverFrame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
But when I use 0-direction. The Popover rectangle does not set the maximum height and can only be set with the corresponding property.
CGRect popeverFrame = CGRectMake(touchPoint.x, touchPoint.y, 0, 0); [self.popover presentPopoverFromRect:popeverFrame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
Hope this helps: UIPopOverController size help
GxocT Aug 27 '13 at 5:58 a.m. 2013-08-27 05:58
source share