@@ -118,6 +118,13 @@
self.tabBarController.tabBar.translucent = YES;
}
+- (void)viewWillDisappear:(BOOL)animated
+{
+ [super viewWillDisappear:animated];
+
+ [self.navigationController setNavigationBarHidden:false];
+}
- (void)viewDidDisappear:(BOOL)animated
{
[super viewDidDisappear:animated];
@@ -38,7 +38,9 @@ class NCViewerRichdocument: NSObject, WKNavigationDelegate, WKScriptMessageHandl
self.detail = detail
-// detail.navigationController?.setNavigationBarHidden(true, animated: false)
+ if (UIDevice.current.userInterfaceIdiom == .phone) {
+ detail.navigationController?.setNavigationBarHidden(true, animated: false)
+ }
let contentController = WKUserContentController()
contentController.add(self, name: "RichDocumentsMobileInterface")