Browse Source

ComPDFKit(flutter) - 1.视图弹出效果优化

yangliuhua 1 year ago
parent
commit
eafda3eea7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      ios/Classes/CompdfkitFlutterPlugin.m

+ 1 - 3
ios/Classes/CompdfkitFlutterPlugin.m

@@ -39,9 +39,7 @@
       CPDFViewController *pdfViewController = [[CPDFViewController alloc] initWithFilePath:path password:nil];
 
       UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:pdfViewController];
-
-      pdfViewController.modalPresentationStyle = UIModalPresentationFullScreen;
-
+      navigationController.modalPresentationStyle = UIModalPresentationFullScreen;
       [tRootViewControl presentViewController:navigationController animated:YES completion:nil];
 
   } else if ([@"getTemporaryDirectory" isEqualToString:call.method]){