Skip to content

Commit

Permalink
fix issue #8 - Popover is not animated (segue)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaschengdev committed Sep 1, 2013
1 parent e6d23ae commit 6dcd570
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions WYPopoverController/WYStoryboardPopoverSegue.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ - (WYPopoverController*)popoverControllerWithSender:(id)aSender permittedArrowDi
{
sender = aSender;
arrowDirections = aArrowDirections;
animated = aAnimated;

popoverController = [[WYPopoverController alloc] initWithContentViewController:self.destinationViewController];

Expand Down
6 changes: 4 additions & 2 deletions demos/DemoSegue/WYPopoverDemoSegue/WYPlayersViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
UINavigationController *navigationController = segue.destinationViewController;
WYPlayerDetailsViewController* playerDetailsViewController = [[navigationController viewControllers] objectAtIndex:0];
playerDetailsViewController.contentSizeForViewInPopover = CGSizeMake(280, 200);
playerDetailsViewController.delegate = self;
//playerDetailsViewController.contentSizeForViewInPopover = CGSizeMake(280, 140);

WYStoryboardPopoverSegue* popoverSegue = (WYStoryboardPopoverSegue*)segue;

popoverController = [popoverSegue popoverControllerWithSender:sender permittedArrowDirections:WYPopoverArrowDirectionAny animated:YES];
popoverController = [popoverSegue popoverControllerWithSender:sender
permittedArrowDirections:WYPopoverArrowDirectionAny
animated:YES];
popoverController.delegate = self;
}
}
Expand Down

0 comments on commit 6dcd570

Please sign in to comment.