I have a UIView that I am rendering a UIBezierPath in based on touchesBegan and touchesMoved. But I only want to draw in a certain area within the UIVIew. I would like to set up a CGRect within the UIView where touches are only registered. Any touches outside of this area will not be registered.
Ideally if the user drages outside of this rectangle, they can keep holding the touch, but the touchesBegan method will be called when they drag back into the area.
Can anyone help with this? Thanks.