lxy 1 year ago
parent
commit
59dc68ebf9

+ 0 - 5
LenzCameraNativeModuleForRN/Classes/inner/CameraManager/CameraManager.m

@@ -44,7 +44,6 @@
         }
         if (((CGFloat)dimensions.width/(CGFloat)dimensions.height) == radio && dimensions.width <= desiredWidth) {
 
-
             if(dimensions.width == 1080 && (model == SDK_CAPTURE_MODE_PANORAMA || model == SDK_CAPTURE_MODE_INTELLEGENCE_PANORAMA)) {
                 aspect = (CGFloat)dimensions.width / dimensions.height;
                 bestFormat = format;
@@ -54,11 +53,7 @@
                 if (bestVideoDimensions.width <= dimensions.width) {
                     bestFormat = format;
                 }
-                bestFormat = format;
             }
-
-        } else {
-            bestFormat = format;
         }
     }
     

+ 20 - 0
LenzCameraNativeModuleForRN/Classes/inner/PCSBaseViewController/PCSPreviewViewController.m

@@ -472,6 +472,25 @@
     [self.modeView addSubview:self.lineImageView];
 }
 
+- (void)updateTotal {
+    NSInteger count = 0;
+    if (self.model.continousArray.count) {
+        count += self.model.continousArray.count;
+    }
+    
+    if (self.model.movieArray.count) {
+        count += self.model.movieArray.count;
+    }
+    if (self.model.panoramArray.count) {
+        count += self.model.panoramArray.count;
+    }
+    if (self.model.aiPanoramArray.count) {
+        count += self.model.aiPanoramArray.count;
+    }
+    self.countLabel.text = [NSString stringWithFormat:@"共%ld笔数据", count];
+    
+}
+
 
 - (void)changeAction:(UITapGestureRecognizer *)tap {
 
@@ -675,6 +694,7 @@
                 [self updateCurrentIndexPath];
             });
             
+            [self updateTotal];
             [self updateViewWhenDelete];
             if (self.dataChangeBlock) {
                 self.dataChangeBlock();

+ 1 - 1
LenzSDK.podspec

@@ -8,7 +8,7 @@
 
 Pod::Spec.new do |s|
   s.name             = 'LenzSDK'
-  s.version          = '2.0.5'
+  s.version          = '2.0.6'
   s.summary          = 'A short description of LenzSDK.'
 
 # This description is used to generate tags and improve search results.