marinofaggiana 4 năm trước cách đây
mục cha
commit
8371cd9467

+ 1 - 1
iOSClient/Main/Account Request/NCAccountRequest.swift

@@ -43,7 +43,7 @@ class NCAccountRequest: UIViewController {
     override func viewDidLoad() {
         super.viewDidLoad()
         
-        titleLabel.text = NSLocalizedString("_account_request_", comment: "")
+        titleLabel.text = NSLocalizedString("_accounts_", comment: "")
         
         tableView.tableFooterView = UIView(frame: CGRect(x: 0, y: 0, width: tableView.frame.size.width, height: 1))
 

+ 18 - 2
iOSClient/Utility/NCUtility.swift

@@ -203,7 +203,7 @@ class NCUtility: NSObject {
         if view == nil {
             if let window = UIApplication.shared.keyWindow {
                 viewActivityIndicator?.removeFromSuperview()
-                viewActivityIndicator = UIView(frame: window.bounds)
+                viewActivityIndicator = NCViewActivityIndicator(frame: window.bounds)
                 window.addSubview(viewActivityIndicator!)
                 viewActivityIndicator?.autoresizingMask = [.flexibleWidth, .flexibleHeight]
             }
@@ -231,7 +231,9 @@ class NCUtility: NSObject {
     @objc func stopActivityIndicator() {
         activityIndicator.stopAnimating()
         activityIndicator.removeFromSuperview()
-        viewActivityIndicator?.removeFromSuperview()
+        if viewActivityIndicator is NCViewActivityIndicator {
+            viewActivityIndicator?.removeFromSuperview()
+        }
     }
     
     @objc func isSimulatorOrTestFlight() -> Bool {
@@ -470,3 +472,17 @@ class NCUtility: NSObject {
     }
 }
 
+// MARK: -
+
+class NCViewActivityIndicator: UIView {
+ 
+    override init(frame: CGRect) {
+        super.init(frame: frame)
+    }
+    
+    required init?(coder: NSCoder) {
+        fatalError("init(coder:) has not been implemented")
+    }
+}
+
+