|
@@ -1221,12 +1221,19 @@
|
|
|
self.stitchView.hidden = YES;
|
|
|
|
|
|
self.flashButton.hidden = NO;
|
|
|
- self.panoramOrientationGuideView.hidden = NO;
|
|
|
- self.panoramaGuideView.hidden = NO;
|
|
|
+
|
|
|
self.modeList.hidden = NO;
|
|
|
self.savePhotoButton.hidden = NO;
|
|
|
self.takePhotoButton.hidden = NO;
|
|
|
- self.ai_fullView.hidden = NO;
|
|
|
+ if (self.mode == SDK_CAPTURE_MODE_INTELLEGENCE_PANORAMA) {
|
|
|
+ self.ai_fullView.hidden = YES;
|
|
|
+ self.panoramOrientationGuideView.hidden = YES;
|
|
|
+ self.panoramaGuideView.hidden = YES;
|
|
|
+ } else {
|
|
|
+ self.ai_fullView.hidden = NO;
|
|
|
+ self.panoramOrientationGuideView.hidden = NO;
|
|
|
+ self.panoramaGuideView.hidden = NO;
|
|
|
+ }
|
|
|
// self.switchButton.hidden = isSaveIng;
|
|
|
self.discardPhotoButton.hidden = NO;
|
|
|
self.backButton.hidden = YES;
|
|
@@ -1401,12 +1408,14 @@
|
|
|
|
|
|
- (void)updatePreViewLayer {
|
|
|
CGFloat width = [UIScreen mainScreen].bounds.size.width;
|
|
|
+ CGFloat height = [UIScreen mainScreen].bounds.size.height;
|
|
|
+
|
|
|
switch (self.mode) {
|
|
|
case SDK_CAPTURE_MODE_CONTINUOUS: {
|
|
|
self.switchButton.hidden = NO;
|
|
|
self.panoramaGuideView.hidden = YES;
|
|
|
self.panoramOrientationGuideView.hidden = YES;
|
|
|
- self.previewLayer.frame = CGRectMake(0, 0, width, width*4/3);
|
|
|
+ self.previewLayer.frame = CGRectMake(0, (height - width*4/3)/2, width, width*4/3);
|
|
|
}
|
|
|
|
|
|
break;
|
|
@@ -1414,7 +1423,7 @@
|
|
|
self.switchButton.hidden = NO;
|
|
|
self.panoramaGuideView.hidden = YES;
|
|
|
self.panoramOrientationGuideView.hidden = YES;
|
|
|
- self.previewLayer.frame = CGRectMake(0, 0, width, width*4/3);
|
|
|
+ self.previewLayer.frame = CGRectMake(0, (height - width*4/3)/2, width, width*4/3);
|
|
|
}
|
|
|
|
|
|
break;
|
|
@@ -1437,7 +1446,7 @@
|
|
|
break;
|
|
|
case SDK_CAPTURE_MODE_INTELLEGENCE_PANORAMA: {
|
|
|
self.switchButton.hidden = YES;
|
|
|
- self.panoramaGuideView.hidden = NO;
|
|
|
+ self.panoramaGuideView.hidden = YES;
|
|
|
self.panoramOrientationGuideView.hidden = YES;
|
|
|
self.previewLayer.frame = self.view.layer.bounds;
|
|
|
}
|