Created
August 19, 2011 09:35
-
-
Save macteo/1156455 to your computer and use it in GitHub Desktop.
Support linked documents in FastPdfKit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)documentViewController:(MFDocumentViewController *)dvc didReceiveRequestToGoToDestinationNamed:(NSString *)destinationName ofFile:(NSString *)fileName{ | |
// We set the parameters to the MenuViewController that will open the other document as soon as this one is dismissed | |
[(MenuViewController *)delegate setLinkedDocument:fileName withPage:-1 orDestinationName:destinationName]; | |
// We need to dismiss the document | |
[self actionDismiss:nil]; | |
} | |
- (void)documentViewController:(MFDocumentViewController *)dvc didReceiveRequestToGoToPage:(NSUInteger)pageNumber ofFile:(NSString *)fileName{ | |
// We set the parameters to the MenuViewController that will open the other document as soon as this one is dismissed | |
[(MenuViewController *)delegate setLinkedDocument:fileName withPage:pageNumber orDestinationName:@""]; | |
// We need to dismiss the document | |
[self actionDismiss:nil]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment