cleanup/normalize method naming and braces

This commit is contained in:
Matthias Wenz
2014-06-02 10:39:45 +02:00
parent 315fee5f92
commit d18183f3ae
8 changed files with 18 additions and 24 deletions

View File

@@ -40,8 +40,7 @@
@implementation BITArrowImageAnnotation @implementation BITArrowImageAnnotation
- (id)initWithFrame:(CGRect)frame - (id)initWithFrame:(CGRect)frame {
{
self = [super initWithFrame:frame]; self = [super initWithFrame:frame];
if (self) { if (self) {
self.shapeLayer = [CAShapeLayer layer]; self.shapeLayer = [CAShapeLayer layer];

View File

@@ -39,8 +39,7 @@
@implementation BITBlurImageAnnotation @implementation BITBlurImageAnnotation
- (id)initWithFrame:(CGRect)frame - (id)initWithFrame:(CGRect)frame {
{
self = [super initWithFrame:frame]; self = [super initWithFrame:frame];
if (self) { if (self) {
self.clipsToBounds = YES; self.clipsToBounds = YES;

View File

@@ -65,8 +65,7 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) {
#pragma mark - UIViewController #pragma mark - UIViewController
- (void)viewDidLoad - (void)viewDidLoad {
{
[super viewDidLoad]; [super viewDidLoad];
self.view.backgroundColor = [UIColor groupTableViewBackgroundColor]; self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];
@@ -246,8 +245,6 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) {
self.panStart = [gestureRecognizer locationInView:self.imageView]; self.panStart = [gestureRecognizer locationInView:self.imageView];
// [self.editingControls setSelectedSegmentIndex:UISegmentedControlNoSegment];
} else if (gestureRecognizer.state == UIGestureRecognizerStateChanged){ } else if (gestureRecognizer.state == UIGestureRecognizerStateChanged){
CGPoint bla = [gestureRecognizer locationInView:self.imageView]; CGPoint bla = [gestureRecognizer locationInView:self.imageView];
self.currentAnnotation.frame = CGRectMake(self.panStart.x, self.panStart.y, bla.x - self.panStart.x, bla.y - self.panStart.y); self.currentAnnotation.frame = CGRectMake(self.panStart.x, self.panStart.y, bla.x - self.panStart.x, bla.y - self.panStart.y);

View File

@@ -38,8 +38,7 @@
@implementation BITRectangleImageAnnotation @implementation BITRectangleImageAnnotation
- (id)initWithFrame:(CGRect)frame - (id)initWithFrame:(CGRect)frame {
{
self = [super initWithFrame:frame]; self = [super initWithFrame:frame];
if (self) { if (self) {
self.shapeLayer = [CAShapeLayer layer]; self.shapeLayer = [CAShapeLayer layer];