
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
41 lines
1.1 KiB
Objective-C
41 lines
1.1 KiB
Objective-C
//
|
|
// UIButton+EnlargeTouchArea.h
|
|
// XCCategrayKit
|
|
//
|
|
// Created by Macx on 2018/8/30.
|
|
// Copyright © 2018年 KevinWang. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface UIButton (EnlargeTouchArea)
|
|
@property (nonatomic, assign) NSTimeInterval yn_acceptEventInterval; // 重复点击的间隔
|
|
|
|
//图片frmae
|
|
@property (strong, nonatomic) NSValue *imageFrame;
|
|
//标题frmae
|
|
@property (strong, nonatomic) NSValue *titleFrame;
|
|
|
|
/**
|
|
通过 hitTest:withEvent: 扩大btn的点击范围
|
|
注:填写的都是 在button 原frame 上面 扩大的对应的值
|
|
|
|
@param top 顶部 扩大的值
|
|
@param right 右边 扩大的值
|
|
@param bottom 底部 扩大的值
|
|
@param left 左边 扩大的值
|
|
*/
|
|
- (void)setEnlargeEdgeWithTop:(CGFloat)top right:(CGFloat)right bottom:(CGFloat)bottom left:(CGFloat)left;
|
|
|
|
/**
|
|
扩大按钮点击范围
|
|
|
|
@discussion setEnlargeEdgeWithTop:right:bottom:left:方法的包装
|
|
*/
|
|
- (void)enlargeTouchArea:(UIEdgeInsets)insets;
|
|
|
|
|
|
+(UIButton *)buttonInitWithText:(NSString *)text font:(UIFont *)font textColor:(UIColor *)textColor image:(UIImage *)image bgImage:(UIImage *)bgImage;
|
|
|
|
@end
|