mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix more warnings
This commit is contained in:
@@ -60,7 +60,7 @@ typedef enum
|
||||
|
||||
@end
|
||||
|
||||
@interface TGVideoMessageCaptureController () <TGVideoCameraPipelineDelegate, TGVideoMessageScrubberDataSource, TGVideoMessageScrubberDelegate>
|
||||
@interface TGVideoMessageCaptureController () <TGVideoCameraPipelineDelegate, TGVideoMessageScrubberDataSource, TGVideoMessageScrubberDelegate, UIGestureRecognizerDelegate>
|
||||
{
|
||||
SQueue *_queue;
|
||||
|
||||
@@ -334,8 +334,7 @@ typedef enum
|
||||
[_shimmerView updateAbsoluteRect:_circleView.bounds containerSize:_circleView.bounds.size];
|
||||
[_circleView addSubview:_shimmerView];
|
||||
|
||||
if (iosMajorVersion() >= 11)
|
||||
{
|
||||
if (@available(iOS 11.0, *)) {
|
||||
_shadowView.accessibilityIgnoresInvertColors = true;
|
||||
_placeholderView.accessibilityIgnoresInvertColors = true;
|
||||
}
|
||||
@@ -487,8 +486,9 @@ typedef enum
|
||||
_previewView = [[TGVideoCameraGLView alloc] initWithFrame:_circleView.bounds];
|
||||
[_circleView insertSubview:_previewView belowSubview:_placeholderView];
|
||||
|
||||
if (iosMajorVersion() >= 11)
|
||||
if (@available(iOS 11.0, *)) {
|
||||
_previewView.accessibilityIgnoresInvertColors = true;
|
||||
}
|
||||
|
||||
[self captureStarted];
|
||||
}
|
||||
@@ -593,6 +593,8 @@ typedef enum
|
||||
.x = _wrapperView.frame.size.width / 2.0f,
|
||||
.y = _wrapperView.frame.size.height / 2.0f - _controlsView.frame.size.height
|
||||
};
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
switch (self.interfaceOrientation)
|
||||
{
|
||||
case UIInterfaceOrientationLandscapeLeft:
|
||||
@@ -606,6 +608,7 @@ typedef enum
|
||||
targetPosition.y = MAX(_circleWrapperView.bounds.size.height / 2.0f + 40.0f, targetPosition.y);
|
||||
break;
|
||||
}
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
if (TGIsPad()) {
|
||||
_circleWrapperView.center = targetPosition;
|
||||
@@ -771,8 +774,6 @@ typedef enum
|
||||
[_generator impactOccurred];
|
||||
}
|
||||
|
||||
bool effectiveHasSchedule = true;
|
||||
|
||||
TGMediaPickerSendActionSheetController *controller = [[TGMediaPickerSendActionSheetController alloc] initWithContext:_context isDark:self.pallete.isDark sendButtonFrame:[_controlsView convertRect:[_controlsView frameForSendButton] toView:nil] canSendSilently:_canSendSilently canSchedule:_canSchedule reminder:_reminder hasTimer:false];
|
||||
__weak TGVideoMessageCaptureController *weakSelf = self;
|
||||
controller.send = ^{
|
||||
@@ -1213,7 +1214,10 @@ typedef enum
|
||||
- (void)configureCamera
|
||||
{
|
||||
_capturePipeline = [[TGVideoCameraPipeline alloc] initWithDelegate:self position:_preferredPosition callbackQueue:dispatch_get_main_queue() liveUploadInterface:_liveUploadInterface];
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
_capturePipeline.orientation = (AVCaptureVideoOrientation)self.interfaceOrientation;
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
__weak TGVideoMessageCaptureController *weakSelf = self;
|
||||
_capturePipeline.micLevel = ^(CGFloat level)
|
||||
@@ -1548,12 +1552,15 @@ static UIImage *startImage = nil;
|
||||
|
||||
if (cropOrientation != NULL)
|
||||
{
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
if (UIInterfaceOrientationIsPortrait(self.interfaceOrientation))
|
||||
*cropOrientation = UIImageOrientationUp;
|
||||
else if (self.interfaceOrientation == UIInterfaceOrientationLandscapeLeft)
|
||||
*cropOrientation = UIImageOrientationRight;
|
||||
else if (self.interfaceOrientation == UIInterfaceOrientationLandscapeRight)
|
||||
*cropOrientation = UIImageOrientationLeft;
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
|
||||
if (cropMirrored != NULL)
|
||||
|
||||
Reference in New Issue
Block a user