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)