marinofaggiana 5 年之前
父节点
当前提交
4a2f53d323
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      iOSClient/Main/NCDetailViewController.swift

+ 3 - 4
iOSClient/Main/NCDetailViewController.swift

@@ -111,11 +111,10 @@ class NCDetailViewController: UIViewController {
                     navigationController.popToRootViewController(animated: true)
                     navigationController.popToRootViewController(animated: true)
                 }
                 }
             } else {
             } else {
-                if backgroundView != nil {
-                    for view in backgroundView.subviews {
-                        view.removeFromSuperview()
-                    }
+                for view in backgroundView.subviews {
+                    view.removeFromSuperview()
                 }
                 }
+                
                 self.navigationController?.navigationBar.topItem?.title = ""
                 self.navigationController?.navigationBar.topItem?.title = ""
             }
             }
         }
         }