Browse Source

PDFTools(iOS) - 预览模块标题修改

chenyu 1 year ago
parent
commit
23badb1630
1 changed files with 1 additions and 1 deletions
  1. 1 1
      viewer-ctrl-demo/viewer-ctrl-demo/CPDFViewController.m

+ 1 - 1
viewer-ctrl-demo/viewer-ctrl-demo/CPDFViewController.m

@@ -135,7 +135,7 @@
 
 - (void)reloadDocumentWithFilePath:(NSString *)filePath completion:(void (^)(BOOL result))completion {
     
-    self.title = [[filePath lastPathComponent] stringByDeletingPathExtension];
+    self.title = @"Viewer";
     _navigationTitle = self.title;
     //
     [self.titleButton setTitle:self.title forState:UIControlStateNormal];