Преглед на файлове

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

dinglingui преди 1 година
родител
ревизия
31b38636dc
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      ComPDFKit_Tools/ComPDFKit_Tools/Viewer/PDFPopMenu/PDFDisplaySetting/CPDFDisplayViewController.m

+ 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