marinofaggiana 5 년 전
부모
커밋
3171520e05
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      iOSClient/Main/NCDetailViewController.swift

+ 1 - 3
iOSClient/Main/NCDetailViewController.swift

@@ -359,9 +359,7 @@ class NCDetailViewController: UIViewController {
             NCViewerVideo.sharedInstance.removeObserver()
         }
         
-        // Add Notification
-        NotificationCenter.default.removeObserver(self)
-        
+        // Add Notification        
         NotificationCenter.default.addObserver(self, selector: #selector(downloadFile(_:)), name: NSNotification.Name(rawValue: k_notificationCenter_downloadFile), object: nil)
         NotificationCenter.default.addObserver(self, selector: #selector(deleteFile(_:)), name: NSNotification.Name(rawValue: k_notificationCenter_deleteFile), object: nil)
         //NotificationCenter.default.addObserver(self, selector: #selector(self.uploadFile(_:)), name: NSNotification.Name(rawValue: k_notificationCenter_uploadFile), object: nil)