mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Fixes #62: Arrow should be default.
This commit is contained in:
@@ -51,7 +51,7 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) {
|
|||||||
|
|
||||||
self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
|
self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
|
||||||
|
|
||||||
NSArray *icons = @[@"Rectangle.png", @"Arrow.png", @"Blur.png"];
|
NSArray *icons = @[@"Arrow.png",@"Rectangle.png", @"Blur.png"];
|
||||||
|
|
||||||
self.editingControls = [[UISegmentedControl alloc] initWithItems:@[@"Rectangle", @"Arrow", @"Blur"]];
|
self.editingControls = [[UISegmentedControl alloc] initWithItems:@[@"Rectangle", @"Arrow", @"Blur"]];
|
||||||
int i=0;
|
int i=0;
|
||||||
@@ -131,9 +131,9 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) {
|
|||||||
|
|
||||||
- (BITImageAnnotation *)annotationForCurrentMode {
|
- (BITImageAnnotation *)annotationForCurrentMode {
|
||||||
if (self.editingControls.selectedSegmentIndex == 0){
|
if (self.editingControls.selectedSegmentIndex == 0){
|
||||||
return [[BITRectangleImageAnnotation alloc] initWithFrame:CGRectZero];
|
|
||||||
} else if(self.editingControls.selectedSegmentIndex==1){
|
|
||||||
return [[BITArrowImageAnnotation alloc] initWithFrame:CGRectZero];
|
return [[BITArrowImageAnnotation alloc] initWithFrame:CGRectZero];
|
||||||
|
} else if(self.editingControls.selectedSegmentIndex==1){
|
||||||
|
return [[BITRectangleImageAnnotation alloc] initWithFrame:CGRectZero];
|
||||||
} else {
|
} else {
|
||||||
return [[BITBlurImageAnnotation alloc] initWithFrame:CGRectZero];
|
return [[BITBlurImageAnnotation alloc] initWithFrame:CGRectZero];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user