From ae5c87c99bb74637d094db653f37545f526a8cb5 Mon Sep 17 00:00:00 2001 From: moritz haarmann Date: Tue, 29 Apr 2014 18:02:30 +0200 Subject: [PATCH] Fixes #62: Arrow should be default. --- Classes/BITImageAnnotationViewController.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/BITImageAnnotationViewController.m b/Classes/BITImageAnnotationViewController.m index 42713a00b0..5bf851a00a 100644 --- a/Classes/BITImageAnnotationViewController.m +++ b/Classes/BITImageAnnotationViewController.m @@ -51,7 +51,7 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) { 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"]]; int i=0; @@ -131,9 +131,9 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) { - (BITImageAnnotation *)annotationForCurrentMode { if (self.editingControls.selectedSegmentIndex == 0){ - return [[BITRectangleImageAnnotation alloc] initWithFrame:CGRectZero]; - } else if(self.editingControls.selectedSegmentIndex==1){ return [[BITArrowImageAnnotation alloc] initWithFrame:CGRectZero]; + } else if(self.editingControls.selectedSegmentIndex==1){ + return [[BITRectangleImageAnnotation alloc] initWithFrame:CGRectZero]; } else { return [[BITBlurImageAnnotation alloc] initWithFrame:CGRectZero]; }