Skip to content

Commit

Permalink
Fixed iPad Popover location
Browse files Browse the repository at this point in the history
  • Loading branch information
mmackh committed Jul 10, 2013
1 parent e9698af commit bb35319
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file not shown.
2 changes: 1 addition & 1 deletion Hacker News/MAMViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ - (void)tableViewDidRecognizeLongPressGestureWithCell:(MAMStoryTableViewCell *)c
if ([MAMHNController isPad])
{
_popoverController = [[UIPopoverController alloc] initWithContentViewController:activityViewController];
[_popoverController presentPopoverFromRect:[self.tableView rectForRowAtIndexPath:indexPath] inView:self.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
[_popoverController presentPopoverFromRect:[self.tableView convertRect:[self.tableView rectForRowAtIndexPath:indexPath] toView:[self.tableView superview]] inView:self.view permittedArrowDirections:UIPopoverArrowDirectionUp|UIPopoverArrowDirectionDown animated:YES];
}
else
{
Expand Down

0 comments on commit bb35319

Please sign in to comment.