Преглед изворни кода

PDFForm(iOS) - 代理优化

chenyu пре 1 година
родитељ
комит
b778a12cdb
1 измењених фајлова са 1 додато и 25 уклоњено
  1. 1 25
      ComPDFKit/ComPDFKit/CPDFViewController.m

+ 1 - 25
ComPDFKit/ComPDFKit/CPDFViewController.m

@@ -17,7 +17,7 @@
 #import <AVFAudio/AVFAudio.h>
 #import <AVFoundation/AVFoundation.h>
 
-@interface CPDFViewController () <CPDFSoundPlayBarDelegate,CPDFAnnotationBarDelegate,CPDFToolsViewControllerDelegate,CPDFNoteOpenViewControllerDelegate,CPDFBOTAViewControllerDelegate,CPDFEditToolBarDelegate,CPDFFormBarDelegate,CPDFListViewDelegate,CPDFPageEditViewControllerDelegate,CPDFSignatureViewControllerDelegate>
+@interface CPDFViewController () <CPDFSoundPlayBarDelegate,CPDFAnnotationBarDelegate,CPDFToolsViewControllerDelegate,CPDFNoteOpenViewControllerDelegate,CPDFBOTAViewControllerDelegate,CPDFEditToolBarDelegate,CPDFFormBarDelegate,CPDFListViewDelegate,CPDFSignatureViewControllerDelegate>
 
 @property(nonatomic, strong) CPDFAnnotationBar *annotationBar;
 
@@ -780,29 +780,5 @@
     [self.navigationController presentViewController:pageEditViewcontroller animated:YES completion:nil];
 }
 
-- (void)enterPDFPageEdit {
-    [super enterPDFPageEdit];
-    CPDFPageEditViewController *pageEditViewcontroller = [[CPDFPageEditViewController alloc] initWithPDFView:self.pdfListView];
-    pageEditViewcontroller.pageEditDelegate = self;
-    pageEditViewcontroller.modalPresentationStyle = UIModalPresentationFullScreen;
-    [self.navigationController presentViewController:pageEditViewcontroller animated:YES completion:nil];
-    [pageEditViewcontroller beginEdit];
-}
-
-#pragma mark - CPDFPageEditViewControllerDelegate
-
-- (void)pageEditViewControllerDone:(CPDFPageEditViewController *)pageEditViewController {
-    __weak typeof(self) weakSelf = self;
-    [weakSelf reloadDocumentWithFilePath:self.filePath password:nil completion:^(BOOL result) {
-        [weakSelf.pdfListView reloadInputViews];
-    }];
-
-    [weakSelf.pdfListView reloadInputViews];
-}
-
-- (void)pageEditViewController:(CPDFPageEditViewController *)pageEditViewController pageIndex:(NSInteger)pageIndex {
-    [self.pdfListView goToPageIndex:pageIndex animated:NO];
-    [self.navigationController popViewControllerAnimated:YES];
-}
 
 @end