Bez popisu

KXLaunchAdImageView.m 668B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // KXLaunchAdImageView.m
  3. // CAISHEN
  4. //
  5. // Created by kuxuan on 2017/8/17.
  6. // Copyright © 2017年 kuxuan. All rights reserved.
  7. //
  8. #import "KXLaunchAdImageView.h"
  9. @implementation KXLaunchAdImageView
  10. - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
  11. {
  12. if ([_delegate respondsToSelector:@selector(didSelectAdvertisementImageView:)]) {
  13. [_delegate didSelectAdvertisementImageView:self];
  14. }
  15. }
  16. - (instancetype)initWithFrame:(CGRect)frame
  17. {
  18. if (self = [super initWithFrame:frame]) {
  19. [self setUserInterAction];
  20. }
  21. return self;
  22. }
  23. - (void)setUserInterAction
  24. {
  25. self.userInteractionEnabled = YES;
  26. }
  27. @end