Well, I was able to turn off the magnifying glass without removing the cursor.
To do this, I removed the UILongPressGestureRecognizer to get rid of the magnifying glass. Then used my UIPanGestureRecognizer to track the location of the user's touch screen.
CGPoint currentPos = [panRecognizer locationInView:self];
and then set the cursor location
UITextPosition *cursorPosition=[self closestPositionToPoint:CGPointMake(currentPos.x, currentPos.y)]; [self setSelectedTextRange:[self textRangeFromPosition:cursorPosition toPosition:cursorPosition]];
source share