//
//  TouchImageView.m
//  iSales-NPD
//
//  Created by Ray on 2/18/16.
//  Copyright © 2016 United Software Applications, Inc. All rights reserved.
//

#import "TouchImageView.h"

@implementation TouchImageView
@synthesize delegate;

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self becomeFirstResponder];
        self.userInteractionEnabled=true;
//        self.layer.borderColor = [UIColor darkGrayColor].CGColor;
//        self.layer.borderWidth = 1.0;
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    [self becomeFirstResponder];
    self.userInteractionEnabled=true;
    self.layer.borderColor = [UIColor darkGrayColor].CGColor;
    self.layer.borderWidth = 1.0;
    // Initialization code
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
        [delegate TouchImageViewOnTouche:self];

}
@end
