Khant Thu Linn
Khant Thu Linn

Reputation: 6133

UItextfield in UIScrollView and move cursor with magnifying glass

I have about 3 UITextfield in a UIScrollview. When I touch and hold magnifying glass and move cursor in "textfield", my "scrollview" also scroll together. I need to disable scrolling of UIScrollview when user use magnifying glass to move cursor in UITextfield. How can I do it?

Upvotes: 0

Views: 265

Answers (1)

TheSD
TheSD

Reputation: 883

You could add a UILongPressGestureRecognizer to the UITextViews. In the function corresponding to the gesture disable scrolling in the UIScrollView

Upvotes: 1

Related Questions