Skip to content

KimDarren/UIButton-Hit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UIButton+HitExtension

CocoaPods

Extension of UIButton to control its touch area.

Installation

Use CocoaPods.

pod 'UIButton+HitExtension'

Usage

Create UIButton, then set hitEdgeInsets.

UIButton *button = [[UIButton alloc] init];
button.hitEdgeInsets = UIEdgeInsetsMake(100.0f, 30.0f, 100.0f, 30.0f);

Congratulations! You're done.

License

UIButton+HitExtension is under WTFPL. You can do what the fuck you want with this shit. See LICENSE file for more info.