ShurupuS
ShurupuS

Reputation: 2923

How the prevent the popover from hiding with status bar in iOS6

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);

enter image description here

Upvotes: 0

Views: 341

Answers (1)

Albin Joseph
Albin Joseph

Reputation: 1141

You reset the UIPopoverArrowDirectionUp to UIPopoverArrowDirectionAny

  [self.listViewPopover presentPopoverFromRect:rect inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

Upvotes: 3

Related Questions