فهرست منبع

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

chenyu 1 سال پیش
والد
کامیت
7a9b0679e9

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

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

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

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