So my code uses the CIFaceFeature for face detection and draws a CGRect around the face. I am trying to enable the user to move the rect around for any minor adjustments to be made using UITouch. But so far I'm unable to do so. I found this How can I move CGRect with UITouches? but it hasn't helped.
I've tried making the CGRect a subview of UIView and implementing it using the code mentioned here UIView drag (image and text) but it isn't working.
Any help would be appreciated thanks.
I have a sample project in
https://github.com/slysid/iOS/tree/master/FaceView
I think, this is might give you an idea
Bharath