Browse Source

PDFTools(iOS) - Fixed 18036 【form】底部工具栏选中任意一个Form模式,切换到Viewer再切换到Form,底部工具Form模式应该要默认不选中

chenyu 1 year ago
parent
commit
7a9b0679e9

+ 1 - 0
Form-Ctrl-Demo/Form-Ctrl-Demo/CPDFViewController.m

@@ -317,6 +317,7 @@
         [self enterViewerMode];
         [self enterViewerMode];
     }else{
     }else{
         //Form
         //Form
+        [self.formBar updateStatus];
         [self enterFormMode];
         [self enterFormMode];
     }
     }
 }
 }

+ 1 - 0
compdfkit-tools/compdfkit-tools/Form/View/CPDFFormBar.m

@@ -272,6 +272,7 @@
 }
 }
 
 
 - (void)updateStatus {
 - (void)updateStatus {
+    self.selectedIndex = - 1;
     self.pdfListView.annotationMode = self.selectedIndex;
     self.pdfListView.annotationMode = self.selectedIndex;
     [self.annotManage setAnnotStyleFromMode:self.selectedIndex];
     [self.annotManage setAnnotStyleFromMode:self.selectedIndex];
     [self reloadData];
     [self reloadData];