Explorar o código

new getCameraRollNewItemsWithDatePhoto

Marino Faggiana %!s(int64=7) %!d(string=hai) anos
pai
achega
4a8cba8775
Modificáronse 1 ficheiros con 4 adicións e 10 borrados
  1. 4 10
      iOSClient/AutoUpload/NCAutoUpload.m

+ 4 - 10
iOSClient/AutoUpload/NCAutoUpload.m

@@ -746,17 +746,11 @@
             
             PHFetchResult *newAssetToUpload = [PHAsset fetchAssetsInAssetCollection:collection options:newInstantUploadAssetsFetchOptions];
 
-            for (PHAsset *asset in newAssetToUpload) {
-                
-                NSLog(@"%@ - %@", asset.modificationDate, asset);
-            }
-            
-            PHFetchResult *allAssetToUpload = [PHAsset fetchAssetsInAssetCollection:collection options:nil];
-            for (PHAsset *asset in allAssetToUpload) {
-                
+#ifdef DEBUG
+            for (PHAsset *asset in newAssetToUpload)
                 NSLog(@"%@ > %@ - %@", asset.modificationDate, datePhoto, asset);
-            }
-
+#endif
+            
             return newAssetToUpload;
             
         } else {