Kaynağa Gözat

PDFForm(iOS) - 代理优化

chenyu 1 yıl önce
ebeveyn
işleme
b778a12cdb
1 değiştirilmiş dosya ile 1 ekleme ve 25 silme
  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