开发者

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/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜