UIButton+TouchAreaInsets 0.1.0

UIButton+TouchAreaInsets 0.1.0

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

Maintained by Suyeol Jeon.


Downloads

Total4,555
Week59
Month330

Installs

Apps43
Apps WeekApps This Week 8
Test Targets7
Test WeekTests This week 1
powered by Segment

GitHub

Stars15
Watchers1
Forks2
Issues0
Contributors1
Pull Requests0

Code

Files2
SizeIntegration Size 16 kb
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);