Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In iOS - When touching a text field in a scroll view the view can not scroll

When trying to scroll a view by touching and dragging on a text field, similarly to how you would scroll around on the edit contacts view on the iPhone, the view will not move, touching and dragging in between the text fields or off to the side of the text fields in the scroll view works but not when touching a textfield.

Any insights would be greatly appreciated. Thanks!

like image 768
PeteBob Avatar asked Dec 21 '22 17:12

PeteBob


1 Answers

Try setting the delaysContentTouches property to YES for the UIScrollView to which you have added to text field. This should allow you to scroll if you touch and then drag within a text field.

like image 151
James Avatar answered Jan 17 '23 17:01

James