12345678910111213141516171819202122232425262728293031323334 |
- //
- // KXLaunchAdImageView.m
- // CAISHEN
- //
- // Created by kuxuan on 2017/8/17.
- // Copyright © 2017年 kuxuan. All rights reserved.
- //
- #import "KXLaunchAdImageView.h"
- @implementation KXLaunchAdImageView
- - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
- {
- if ([_delegate respondsToSelector:@selector(didSelectAdvertisementImageView:)]) {
- [_delegate didSelectAdvertisementImageView:self];
- }
- }
- - (instancetype)initWithFrame:(CGRect)frame
- {
- if (self = [super initWithFrame:frame]) {
- [self setUserInterAction];
- }
- return self;
- }
- - (void)setUserInterAction
- {
- self.userInteractionEnabled = YES;
- }
- @end
|