I am currently developing an application like "kresta app". First of all, I selected an image from the photo gallery. Then, in my work, the user can choose in which area he wants to apply curtains and shadows. so I want to have four contacts, and the user can tap and drag the contacts to select the area. I implemented this logic using the code below.
Jpg
In the affected movements, I called this method
UIBezierPath *aPath = [UIBezierPath bezierPath];
My problem is that every time she adds a layer. how to implement this logic? - any way to delete the previous layer and update a new layer? or my path is wrong, if wrong, suggest any other way to implement this logic.
source share