Skip to content

shoaib-akhtar/UIButton-InspectableHitExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UIButton-InspectableHitExtension

===================================

CocoaPods

Extension of UIButton to control its touch area.

Installation

Use CocoaPods.

pod 'UIButton+SBAInspectableHitExtension'

Usage

Create UIButton, then set hitTestEdgeInsets.

UIButton *button = [[UIButton alloc] init];
button.hitTestEdgeInsets = UIEdgeInsetsMake(-10.0f, 10.0f, -10.0f, -10.0f);

Create UIButton, using interface builder and set it's topTouch,leftTouch, bottomTouch and rightTouch.

Congratulations! You're done.

License

UIButton-InspectableHitExtension is under MIT. See LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published