Skip to content

Commit

Permalink
Remove close button if left bar button items are set
Browse files Browse the repository at this point in the history
This fixes an issue with custom button actions not being called.
The close button can still be shown by adding 'close' to the button items.
If the left button items are not set, the close button will still be shown.
  • Loading branch information
steviki committed Apr 19, 2017
1 parent 6809a0c commit 27bf207
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -866,6 +866,7 @@ - (void)setPageAnimatedForPSPDFViewControllerWithJSON:(NSNumber *)page

- (void)setLeftBarButtonItemsForPSPDFViewControllerWithJSON:(NSArray *)items
{
_pdfController.navigationItem.closeBarButtonItem = nil;
_pdfController.navigationItem.leftBarButtonItems = [self barButtonItemsWithArray:items] ?: _pdfController.navigationItem.leftBarButtonItems;
}

Expand Down

0 comments on commit 27bf207

Please sign in to comment.