2012-07-20 2 views

Répondre

0
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ 
    NSLog(@"Touch detected"); 
    CGPoint touchPoint=[gesture locationInView:self.view]; 
    if(CGRectContainsCGPoint(imgView1.frame, touchPoint)) 
      // first image view touched, play sound here 
} 

et notez les clauses si pour les autres vues d'image aussi ... it helps .. :)