how to get a touch event only on specified view.Not on other view
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
currentPoint = [touch locationInView:drawImage];
}
In this code touch is on anyObject.
is there any why i can give touches to only specifies view.
You can use the property view on the UITouch, to find which view it occurred on
UITouch
Or you can find all the touched for a particular view, from the UIEvent param
UIEvent