UIButton+TouchAreaInsets 0.1.0

UIButton+TouchAreaInsets 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2017

Maintained by Suyeol Jeon.


Downloads

Total10,365
Week0
Month0

Installs

Apps64
Test Targets10
powered by Segment

GitHub

Stars20
Watchers1
Forks3
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 27


  • By
  • devxoul

UIButton-TouchAreaInsets

Set UIButton's touch area insets.

The code below expands button's touch area for 20px.

UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 44, 44)];
button.touchAreaInsets = UIEdgeInsetsMake(20, 20, 20, 20);