开发者

Touch event in app delegate iOS

开发者 https://www.devze.com 2023-03-23 08:41 出处:网络
How to achieve touch even for UIIma开发者_StackOverflowgeView in appDelegate?You can use: UITapGestureRecognizer *tgr = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(anyMethod)

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

精彩评论

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