Marino Faggiana 6 жил өмнө
parent
commit
0866619dc1

+ 3 - 3
iOSClient/Main/Create cloud/NCCreateFormUploadRichdocuments.storyboard

@@ -19,10 +19,10 @@
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                         <subviews>
                             <collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="kdt-bX-icm">
-                                <rect key="frame" x="0.0" y="64" width="375" height="200"/>
+                                <rect key="frame" x="0.0" y="64" width="375" height="250"/>
                                 <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                 <constraints>
-                                    <constraint firstAttribute="height" constant="200" id="XAH-EC-bwE"/>
+                                    <constraint firstAttribute="height" constant="250" id="XAH-EC-bwE"/>
                                 </constraints>
                                 <collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="0.0" minimumInteritemSpacing="0.0" id="pay-52-Gt0">
                                     <size key="itemSize" width="150" height="165"/>
@@ -81,7 +81,7 @@
                                 </connections>
                             </collectionView>
                             <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" scrollEnabled="NO" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="eeP-9N-ZRP">
-                                <rect key="frame" x="0.0" y="297" width="375" height="200"/>
+                                <rect key="frame" x="0.0" y="347" width="375" height="200"/>
                                 <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                                 <constraints>
                                     <constraint firstAttribute="height" constant="200" id="kKy-VZ-d0g"/>

+ 1 - 9
iOSClient/Main/Create cloud/NCCreateMenuAdd.swift

@@ -99,21 +99,13 @@ class NCCreateMenuAdd: NSObject {
                 guard let navigationController = UIStoryboard(name: "NCCreateFormUploadRichdocuments", bundle: nil).instantiateInitialViewController() else {
                     return
                 }
-                navigationController.modalPresentationStyle = UIModalPresentationStyle.pageSheet
+                navigationController.modalPresentationStyle = UIModalPresentationStyle.formSheet
                 
                 let viewController = (navigationController as! UINavigationController).topViewController as! NCCreateFormUploadRichdocuments
                 viewController.typeTemplate = k_richdocument_document
                 viewController.serverUrl = self.appDelegate.activeMain.serverUrl
                 
                 self.appDelegate.window.rootViewController?.present(navigationController, animated: true, completion: nil)
-
-                /*
-                let viewController = NCCreateFormUploadRichdocuments.init(typeTemplate: k_richdocument_document)
-                let navigationController = UINavigationController.init(rootViewController: viewController)
-                navigationController.modalPresentationStyle = UIModalPresentationStyle.formSheet
-                
-                self.appDelegate.window.rootViewController?.present(navigationController, animated: true, completion: nil)
-                */
             }
             if item.value as? Int == 7 { print("Cancel buttons has the value `true`") }
             if item.value as? Int == 8 { print("Cancel buttons has the value `true`") }