Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // UIView+ExpandedHitZone.h
- // HitTestDemo
- //
- // Created by Mon on 08/12/2016.
- // Copyright © 2016 wenyongyang. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @interface UIView (ExpandedHitZone)
- /**
- 被调整的宽度,增量
- 增大时需小于0
- */
- @property (nonatomic, assign) CGFloat dx;
- /**
- 被调整的高度,增量
- 增大时需小于0
- */
- @property (nonatomic, assign) CGFloat dy;
- /**
- 初始化响应区域被扩大或缩小的 view
- @param dx 被扩大的宽度,按照一边计算
- @param dy 被扩大的高度,按照一边计算
- @return 响应区域调整的 view
- */
- - (instancetype)initWithDx:(CGFloat)dx dy:(CGFloat)dy;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement