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!)
         }
         
-        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: "")
         
-        dropDown.show()
+        let window = UIApplication.shared.keyWindow
+        dropDown.show(onTopOf: window, beforeTransform: nil, anchorPoint: nil)
     }
     
     @IBAction func actionClearStatusMessage(_ sender: UIButton) {