Prechádzať zdrojové kódy

PDFAnnotation(iOS)- 修改annotationToolbar无选中模式夜间背景色

yangliuhua 1 rok pred
rodič
commit
83f376f5d6

+ 3 - 3
ComPDFKit_Tools/ComPDFKit_Tools/Annotations/PDFAnnotationBar/CPDFAnnotationToolBar.m

@@ -119,7 +119,7 @@
             for (NSInteger i = 0; i< self.annotationBtns.count; i++) {
                 CPDFAnnotationBarButton *button = [self.annotationBtns objectAtIndex:i];
                 if(button.tag == self.selectedIndex) {
-                    button.backgroundColor = [CPDFColorUtils CAnnotationBarNoSelectBackgroundColor];
+                    button.backgroundColor = [UIColor clearColor];
                     self.selectedIndex = 0;
                     break;
                 }
@@ -132,7 +132,7 @@
                 button.backgroundColor = [CPDFColorUtils CAnnotationBarSelectBackgroundColor];
                 self.selectedIndex = button.tag;
             } else {
-                button.backgroundColor = [CPDFColorUtils CAnnotationBarNoSelectBackgroundColor];
+                button.backgroundColor = [UIColor clearColor];
             }
         }
     }
@@ -348,7 +348,7 @@
         }
         self.pdfListView.annotationMode = CPDFViewAnnotationModeNone;
         self.selectedIndex = 0;
-        button.backgroundColor = [CPDFColorUtils CAnnotationBarNoSelectBackgroundColor];
+        button.backgroundColor = [UIColor clearColor];
         isSelect = NO;
     }
     

+ 2 - 1
ComPDFKit_Tools/ComPDFKit_Tools/DocsEditor/PDFPageEdit/Control/CPDFPageEditViewController.m

@@ -581,8 +581,9 @@
     for (NSIndexPath *indexPath in [self.collectionView indexPathsForSelectedItems]) {
         [deleteIndexSet addIndex:indexPath.item];
     }
-    [self.collectionView deleteItemsAtIndexPaths:[self.collectionView indexPathsForSelectedItems]];
+    
     [self.pdfView.document removePageAtIndexSet:deleteIndexSet];
+    [self.collectionView deleteItemsAtIndexPaths:[self.collectionView indexPathsForSelectedItems]];
     
     [self.pdfView.document importPages:indexSet fromDocument:document atIndex:min];
     [self.collectionView reloadData];