I have UIViewController. And 3 UIView inside How detect touchs independently.
I have 3 classes, and added the objects in the UIViewController
And have this method in each class, I need touch the object (UIView) responds to the event independently
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
}
example:
view1 NSLog(@"I Touched View 1");
view2 NSLog(@"I Touched View 2");
view3 NSLog(@"I Touched View 3");
Thanks!!