|
@@ -142,9 +142,9 @@
|
|
|
}
|
|
|
|
|
|
- (void)buttonItemClicked_back:(id)sender {
|
|
|
- [self dismissViewControllerAnimated:YES completion:^{
|
|
|
-
|
|
|
- }];
|
|
|
+ if([self.delegate respondsToSelector:@selector(botaViewControllerDismiss:)]) {
|
|
|
+ [self.delegate botaViewControllerDismiss:self];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
#pragma mark - Action
|
|
@@ -191,10 +191,6 @@
|
|
|
- (void)outlineViewController:(CPDFOutlineViewController *)outlineViewController pageIndex:(NSInteger)pageIndex {
|
|
|
[self.pdfView goToPageIndex:pageIndex animated:NO];
|
|
|
|
|
|
- [self dismissViewControllerAnimated:YES completion:^{
|
|
|
-
|
|
|
- }];
|
|
|
-
|
|
|
if([self.delegate respondsToSelector:@selector(botaViewControllerDismiss:)]) {
|
|
|
[self.delegate botaViewControllerDismiss:self];
|
|
|
}
|
|
@@ -215,6 +211,7 @@
|
|
|
- (void)annotationViewController:(CPDFAnnotationViewController *)annotationViewController jumptoPage:(NSInteger)pageIndex selectAnnot:(CPDFAnnotation *)annot {
|
|
|
[self.pdfView goToPageIndex:pageIndex animated:NO];
|
|
|
[self.pdfView goToRect:annot.bounds onPage:[self.pdfView.document pageAtIndex:pageIndex] animated:YES];
|
|
|
+
|
|
|
if([self.delegate respondsToSelector:@selector(botaViewControllerDismiss:)]) {
|
|
|
[self.delegate botaViewControllerDismiss:self];
|
|
|
}
|