- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
self.userInteractionEnabled = YES;
}
return self;
}
- (void)addTarget:(id)target action:(SEL)action withArguments:(NSInteger)section
{
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapClick:)];
_target = target;
_action = action;
_section = section;
[self addGestureRecognizer:tap];
}