使用
[self.view addGestureRecognizer:JHGestureType_Tap block:^(UIView *view, UIGestureRecognizer *gesture) {
// do your stuff!
// 是时候露一手了!
// example
[view removeGestureRecognizer:gesture];
}];
地址
https://github.com/xjh093/JHGestureBlock
文本点击,如此简单
https://github.com/xjh093/JHTapTextView