Marino Faggiana 6 년 전
부모
커밋
cb12d52215
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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 = ""
             }