Browse Source

PDFViewer(iOS) - 页面模式切换时未跳转到之前页码位置

dinglingui 1 year ago
parent
commit
31b38636dc

+ 3 - 1
ComPDFKit_Tools/ComPDFKit_Tools/Viewer/PDFPopMenu/PDFDisplaySetting/CPDFDisplayViewController.m

@@ -496,7 +496,8 @@ typedef NS_ENUM(NSUInteger, CDisplayPDFType) {
     [tableView deselectRowAtIndexPath:indexPath animated:YES];
     
     CDisplayPDFType type = CDisplayPDFTypeCropMode;
-    
+    NSInteger index = self.pdfview.currentPageIndex;
+
     if(indexPath.section == 0){
         type = (CDisplayPDFType)[[self.displayModeArray objectAtIndex:indexPath.row] integerValue];
     }else if(indexPath.section == 1) {
@@ -581,6 +582,7 @@ typedef NS_ENUM(NSUInteger, CDisplayPDFType) {
         default:
             break;
     }
+    [self.pdfview goToPageIndex:index animated:NO];
 }
 
 @end