I have a Viewcontroller with two UIViews, one named textureView and one objectView.
When I only have one view I detect touch using this:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
NSArray *allTouches = [touches allObjects];
for (UITouch *touch in allTouches)
{
gestureStartPoint = [touch locationInView:self.view];
if([touch view] == controlUIImageview){
NSLog(@"TOUCH DETECT");
}
}
}
How do I write this part if I have some things I want to interact with in the textureView and some in the objectView?
Do I need to set the textureView andcontrolView to setUserInteractionEnabled:TRUE ?
Thanks!