I have a popover, which is presented from the code:
我有一个popover,它是从代码中提供的:
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?
正如你在屏幕截图中看到的那样 - 弹出窗口隐藏在状态栏中 - 是否可以从应该显示popover的区域中排除状态栏框架?
The content size for view in popover looks like this:
popover中视图的内容大小如下所示:
self.contentSizeForViewInPopover = CGSizeMake (320, self.view.frame.size.height - 100);
1 个解决方案
#1
3
You reset the UIPopoverArrowDirectionUp to UIPopoverArrowDirectionAny
您将UIPopoverArrowDirectionUp重置为UIPopoverArrowDirectionAny
[self.listViewPopover presentPopoverFromRect:rect inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
#1
3
You reset the UIPopoverArrowDirectionUp to UIPopoverArrowDirectionAny
您将UIPopoverArrowDirectionUp重置为UIPopoverArrowDirectionAny
[self.listViewPopover presentPopoverFromRect:rect inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];