I am working on a project in which I have to create a tagging screen.What exactly I have to do is when the user touch on the image a rectangle should be drawn assuming the center points be the touch points.Please suggest me the approach or some sample code which I should follow it.
Any suggestions will be highly appreciated.
Thanks in advance.
I am working on a project in which I have to create a tagging
Share
There are few ways to do this but I prefer the idea of using layers for this task. For this to work, you will have to attach a tap recognizer to the image view and add the tag layers as sublayers to the image view’s layer in the gesture handler.
You will have to add the
QuartzCoreframework for this to work and#import <QuartzCore/QuartzCore.h>for this to work.