Touch event in app delegate iOS
How to achieve touch even for UIIma开发者_StackOverflowgeView
in appDelegate
?
You can use:
UITapGestureRecognizer *tgr = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(anyMethod)];
[imageView addGestureRecognizer:tgr];
[tgr release];
Before doing this, enable user interaction of UIimageView.
This might be helpful for you:
http://mithin.in/2009/08/26/detecting-taps-and-events-on-uiwebview-the-right-way/
精彩评论