Question

HI
I have a UIScrollView
In this scrollView i have added an UIImage ,UILabel,UIButton.
I want to detect the double click of UIImage inside the UIScrollView.

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

what sholud i use in place of ?? to detect the UIImageView insde the UIScrollView.
Thanks for any help.

Was it helpful?

Solution

I think you can find the answer in the following sample code.

This sample codes are come from Apple. You can find those sample codes at the UIImageView Class Reference.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top