开发者

Intercepting all touch events [duplicate]

This question already has answers here: Observing pinch multi-touch gestures in a UITableView (2 answers) Closed 8 years ago.

I have a UIViewController inside of a navigation based app. I'd like the view controller to receive all touch events from child objects, such as a tableview and navigation bar. Or, any other technique that is able to intercept all touch events.

Right now, the 开发者_如何学Pythonfollowing never executes inside of the view controller:

 - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event

I need to check a class level flag inside of the touch event, no matter where the touch came from (within any of the view's children).


See this question for the answer: Observing pinch multi-touch gestures in a UITableView

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜