marinofaggiana 3 年之前
父節點
當前提交
4e6c3a6bb4
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 2 1
      iOSClient/Share/NCShare.swift
  2. 2 1
      iOSClient/UserStatus/NCUserStatus.swift

+ 2 - 1
iOSClient/Share/NCShare.swift

@@ -392,7 +392,8 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareLinkCellDel
             self!.networking?.createShare(shareWith: sharee.shareWith, shareType: sharee.shareType, metadata: self!.metadata!)
             self!.networking?.createShare(shareWith: sharee.shareWith, shareType: sharee.shareType, metadata: self!.metadata!)
         }
         }
         
         
-        dropDown.show()
+        let window = UIApplication.shared.keyWindow
+        dropDown.show(onTopOf: window, beforeTransform: nil, anchorPoint: nil)
     }
     }
 }
 }
 
 

+ 2 - 1
iOSClient/UserStatus/NCUserStatus.swift

@@ -318,7 +318,8 @@ class NCUserStatus: UIViewController {
         
         
         clearStatusMessageAfterText.text = " " + NSLocalizedString("_select_option_", comment: "")
         clearStatusMessageAfterText.text = " " + NSLocalizedString("_select_option_", comment: "")
         
         
-        dropDown.show()
+        let window = UIApplication.shared.keyWindow
+        dropDown.show(onTopOf: window, beforeTransform: nil, anchorPoint: nil)
     }
     }
     
     
     @IBAction func actionClearStatusMessage(_ sender: UIButton) {
     @IBAction func actionClearStatusMessage(_ sender: UIButton) {