Marino Faggiana 6 years ago
parent
commit
cb12d52215
1 changed files with 4 additions and 1 deletions
  1. 4 1
      iOSClient/Viewer/NCViewerRichdocument.swift

+ 4 - 1
iOSClient/Viewer/NCViewerRichdocument.swift

@@ -38,6 +38,8 @@ class NCViewerRichdocument: NSObject, WKNavigationDelegate, WKScriptMessageHandl
         
         self.detail = detail
         
+//        detail.navigationController?.setNavigationBarHidden(true, animated: false)
+        
         let contentController = WKUserContentController()
         contentController.add(self, name: "RichDocumentsMobileInterface")
         let configuration = WKWebViewConfiguration()
@@ -71,7 +73,8 @@ class NCViewerRichdocument: NSObject, WKNavigationDelegate, WKScriptMessageHandl
 
                 self.webView.removeFromSuperview()
                 
-                self.detail.navigationController?.popToRootViewController(animated: true)
+                self.detail.navigationController?.popViewController(animated: true)
+//                detail.navigationController?.setNavigationBarHidden(false, animated: false)
                 self.detail.navigationController?.navigationBar.topItem?.title = ""
             }