acerbetti / ACEDrawingView

An open source iOS component to create a drawing app
Apache License 2.0
665 stars 171 forks source link

Draggable textview position problem #88

Open HardikDG opened 7 years ago

HardikDG commented 7 years ago

I am using 'ACEDrawingDraggableTextTool' in the project. I am running the code in the Xcode 9. iPhone X/iPhone 8 plus simulator.

The issue is, the text view is not getting placed at the cursor location. When I click on the screen it is placed some points down the cursor pointer. I want to create text view from the touch point itself instead of another location. How can I achieve it?

Other controls are working properly as per the touch location.

acerbetti commented 7 years ago

Thanks, I'll take a look

pineappleslikei commented 8 months ago

Not sure if anyone cares 6 and a half years later, but looks like origin changing on 587 https://github.com/acerbetti/ACEDrawingView/blob/47f3bce4a4d0756ed833f57ec093281369ad3bff/ACEDrawingView/ACEDrawingLabelView.m#L567-L587