marinofaggiana 4 년 전
부모
커밋
8ea5424329
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 2
      iOSClient/Media/NCMedia.swift
  2. 1 1
      iOSClient/Viewer/NCViewerImage/NCViewerImagePageContainer.swift

+ 3 - 2
iOSClient/Media/NCMedia.swift

@@ -124,8 +124,9 @@ class NCMedia: UIViewController, NCEmptyDataSetDelegate, NCSelectDelegate {
         super.viewWillAppear(animated)
         
         // hide nagigation controller
-        self.navigationController?.setNavigationBarHidden(true, animated: false)
-
+        navigationController?.navigationBar.prefersLargeTitles = true
+        navigationController?.setNavigationBarHidden(true, animated: false)
+        
         self.reloadDataSourceWithCompletion { (_) in
             self.searchNewPhotoVideo()
         }

+ 1 - 1
iOSClient/Viewer/NCViewerImage/NCViewerImagePageContainer.swift

@@ -118,7 +118,7 @@ class NCViewerImagePageContainer: UIViewController, UIGestureRecognizerDelegate
         navigationItem.rightBarButtonItem = buttonMore
         
         navigationController?.setNavigationBarHidden(false, animated: true)
-        navigationController?.navigationBar.prefersLargeTitles = true
+        navigationController?.navigationBar.prefersLargeTitles = false
     }
     
     @objc func viewUnload() {