Эх сурвалжийг харах

https://github.com/nextcloud/ios/issues/135

Marino Faggiana 8 жил өмнө
parent
commit
d803b82f88

+ 0 - 23
iOSClient/Images.xcassets/offlinecrypto.imageset/Contents.json

@@ -1,23 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "filename" : "offlinecrypto@1x.png",
-      "scale" : "1x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "offlinecrypto@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "offlinecrypto@3x.png",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

BIN
iOSClient/Images.xcassets/offlinecrypto.imageset/offlinecrypto@1x.png


BIN
iOSClient/Images.xcassets/offlinecrypto.imageset/offlinecrypto@2x.png


BIN
iOSClient/Images.xcassets/offlinecrypto.imageset/offlinecrypto@3x.png


+ 8 - 3
iOSClient/PhotosCameraUpload/CCPhotosCameraUpload.m

@@ -132,10 +132,15 @@
     UIImage *icon = [UIImage imageNamed:image_seleziona];
     UIBarButtonItem *buttonSelect = [[UIBarButtonItem alloc] initWithImage:icon style:UIBarButtonItemStylePlain target:self action:@selector(collectionSelectYES)];
     
-    if ([_sectionDataSource.allRecordsDataSource count] > 0) buttonSelect.enabled = true;
-    else buttonSelect.enabled = false;
+    if ([_sectionDataSource.allRecordsDataSource count] > 0) {
+        
+        self.navigationItem.rightBarButtonItems = [[NSArray alloc] initWithObjects:buttonSelect, nil];
+        
+    } else {
+        
+        self.navigationItem.rightBarButtonItems = nil;
+    }
     
-    self.navigationItem.rightBarButtonItems = [[NSArray alloc] initWithObjects:buttonSelect, nil];
     self.navigationItem.leftBarButtonItem = nil;
     
     // Title