marinofaggiana 3 жил өмнө
parent
commit
abbf0a02ce

+ 3 - 1
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -865,7 +865,9 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         becomeFirstResponder()
                 
         listMenuItems.append(UIMenuItem.init(title: NSLocalizedString("_paste_file_", comment: ""), action: #selector(pasteFilesMenu)))
-        listMenuItems.append(UIMenuItem.init(title: NSLocalizedString("_background_", comment: ""), action: #selector(backgroundFilesMenu)))
+        if #available(iOS 13.0, *) {
+            listMenuItems.append(UIMenuItem.init(title: NSLocalizedString("_background_", comment: ""), action: #selector(backgroundFilesMenu)))
+        }
         
         if listMenuItems.count > 0 {
             UIMenuController.shared.menuItems = listMenuItems