add gesture recognizer delegate method to fix issue #40

Discussions on this issue 

http://stackoverflow.com/questions/13515539/uibutton-not-works-in-ios-5-x-everything-is-fine-in-ios-6-x

Fixed by adding a delegate method.