Marino Faggiana před 6 roky
rodič
revize
cb12d52215
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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 = ""
             }