Reputation: 2923
I have a popover, which is presented from the code:
CGPoint screenPoint = [self.mapView screenPoint: self.selectedObject.pointCoordinate];
CGRect rect = CGRectMake(screenPoint.x, screenPoint.y, 1, 1);
[self.detailViewPopover presentPopoverFromRect:rect inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
As u can see on the screenshot - the popover is hiding by the status bar - is it possible the exclude the status bar frame from the area where popover should be displayed?
The content size for view in popover looks like this:
self.contentSizeForViewInPopover = CGSizeMake (320, self.view.frame.size.height - 100);
Upvotes: 0
Views: 341
Reputation: 1141
You reset the UIPopoverArrowDirectionUp to UIPopoverArrowDirectionAny
[self.listViewPopover presentPopoverFromRect:rect inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
Upvotes: 3