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

Total5,133
Week14
Month377

Installs

Apps44
Apps WeekApps This Week 2
Test Targets7
Test WeekTests This week 1
powered by Segment

GitHub

Stars19
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);