mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-16 18:40:05 +00:00
+ Removed a deprecation warning.
This commit is contained in:
parent
aaccc5cc1d
commit
409f9541ef
@ -66,7 +66,10 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) {
|
|||||||
[self.editingControls setImage:bit_imageNamed(imageName, BITHOCKEYSDK_BUNDLE) forSegmentAtIndex:i++];
|
[self.editingControls setImage:bit_imageNamed(imageName, BITHOCKEYSDK_BUNDLE) forSegmentAtIndex:i++];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||||
[self.editingControls setSegmentedControlStyle:UISegmentedControlStyleBar];
|
[self.editingControls setSegmentedControlStyle:UISegmentedControlStyleBar];
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
|
||||||
self.navigationItem.titleView = self.editingControls;
|
self.navigationItem.titleView = self.editingControls;
|
||||||
|
|
||||||
@ -279,7 +282,6 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) {
|
|||||||
|
|
||||||
} else if (gestureRecognizer.state == UIGestureRecognizerStateChanged && self.currentAnnotation && gestureRecognizer.numberOfTouches>1){
|
} else if (gestureRecognizer.state == UIGestureRecognizerStateChanged && self.currentAnnotation && gestureRecognizer.numberOfTouches>1){
|
||||||
CGRect newFrame= (self.pinchStartingFrame);
|
CGRect newFrame= (self.pinchStartingFrame);
|
||||||
NSLog(@"%f", [gestureRecognizer scale]);
|
|
||||||
|
|
||||||
// upper point?
|
// upper point?
|
||||||
CGPoint point1 = [gestureRecognizer locationOfTouch:0 inView:self.view];
|
CGPoint point1 = [gestureRecognizer locationOfTouch:0 inView:self.view];
|
||||||
@ -298,10 +300,6 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) {
|
|||||||
|
|
||||||
self.currentAnnotation.frame = newFrame;
|
self.currentAnnotation.frame = newFrame;
|
||||||
self.currentAnnotation.imageFrame = [self.view convertRect:self.imageView.frame toView:self.currentAnnotation];
|
self.currentAnnotation.imageFrame = [self.view convertRect:self.imageView.frame toView:self.currentAnnotation];
|
||||||
|
|
||||||
// we
|
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
self.currentAnnotation = nil;
|
self.currentAnnotation = nil;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user