//
//  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;

- (void)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 {
    //    [self setTextColor:COLOR(0,0,0,1.0)];
  //  UITouch *touch = [touches anyObject];
 //   CGPoint points = [touch locationInView:self];
//    if (points.x >= self.frame.origin.x && points.y >= self.frame.origin.x && points.x <= self.frame.size.width && points.y <= self.frame.size.height)
//    {
        [delegate TouchImageViewOnTouche:self];
//        [delegate touchLabel:self touchesWtihTag:self.tag];
//    }
}
@end
