0


,我有一个 UIScrollView
在这个滚动视图中,我添加了一个 UIImage、UILabel、UIButton。
我想检测 UIScrollView 内 UIImage 的双击。

-(void) touchesbegin:(NSSet *)touchs withEvent:(UIEvent *)event
{
    if([[touches anyObject]view]==??)
    {
       //MyCode on double tap of UIImageView inside UIScrollView
    }
}

我应该用什么代替??在 UIScrollView 中检测 UIImageView。
谢谢你的帮助。

4

1 回答 1

1

我想你可以在下面的示例代码中找到答案。

此示例代码来自 Apple。您可以在 UIImageView 类参考中找到这些示例代码。

于 2010-08-31T13:14:50.977 回答