I have a subclassed UIView called TargetView that contains several CGPaths. When users click on any of the CGPaths (in UIView's touchesBegan) I would like to make changes to the parent view controller. Here is code from TargetView (UIView)
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
CGPoint tap = [[touches anyObject] locationInView:self];
if(CGPathContainsPoint(region, NULL, tap, NO)){
// ...do something to the parent view controller
}
}
How might I do this? Thanks!