Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
EnlargeTouchArea.xcodeproj
EnlargeTouchArea
README.md

README.md

EnlargeTouchArea

##Intrudoction

This project shows you how to enlarge touch area of the button.

##Usage Drag UIButton+EnlargeArea.h and UIButton+EnlargeArea.m into your project.

create a button, and use the method:

[enlargeButton setEnlargeEdge:20];

###Customization You may want to custom your own touch area. All directions are possible.

In setEnlargeEdgeWithTop: method, set the size of [top, right, bottom, left] you want.

[enlargeButton setEnlargeEdgeWithTop:20 right:20 bottom:20 left:0];

You can easily customize your touch area of the button.

##Requirements

  • iOS >= 4.3
  • non-ARC

View the original post