Marino Faggiana %!s(int64=6) %!d(string=hai) anos
pai
achega
cb12d52215
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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 = ""
             }