Permalink
Browse files

Hide the report detail popover on rotation.

  • Loading branch information...
1 parent 9f443e6 commit 882beeef2e9afd074b910e52b4ee4e9600e0c2ed Ole Zorn committed May 16, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 Classes/SalesViewController.m
@@ -177,6 +177,9 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
+ if (self.selectedReportPopover.popoverVisible) {
+ [self.selectedReportPopover dismissPopoverAnimated:YES];
+ }
if (UIInterfaceOrientationIsLandscape(toInterfaceOrientation)) {
self.graphView.frame = self.view.bounds;
self.topView.frame = self.view.bounds;

0 comments on commit 882beee

Please sign in to comment.